Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * public include for LM8333 keypad driver - same license as driver
0003  * Copyright (C) 2012 Wolfram Sang, Pengutronix <kernel@pengutronix.de>
0004  */
0005 
0006 #ifndef _LM8333_H
0007 #define _LM8333_H
0008 
0009 struct lm8333;
0010 
0011 struct lm8333_platform_data {
0012     /* Keymap data */
0013     const struct matrix_keymap_data *matrix_data;
0014     /* Active timeout before enter HALT mode in microseconds */
0015     unsigned active_time;
0016     /* Debounce interval in microseconds */
0017     unsigned debounce_time;
0018 };
0019 
0020 extern int lm8333_read8(struct lm8333 *lm8333, u8 cmd);
0021 extern int lm8333_write8(struct lm8333 *lm8333, u8 cmd, u8 val);
0022 extern int lm8333_read_block(struct lm8333 *lm8333, u8 cmd, u8 len, u8 *buf);
0023 
0024 #endif /* _LM8333_H */