#include <linux/module.h>
#include <linux/slab.h>
#include <linux/irq.h>
#include <linux/i2c.h>
#include <linux/interrupt.h>
#include <linux/input/matrix_keypad.h>
#include <linux/input/lm8333.h>
Go to the source code of this file.
#define LM8333_ACTIVE 0xE4 |
#define LM8333_DEBOUNCE 0x22 |
#define LM8333_ERROR_FIFOOVR 0x40 |
#define LM8333_ERROR_IRQ (1 << 3) |
#define LM8333_ERROR_KEYOVR 0x04 |
#define LM8333_FIFO_READ 0x20 |
#define LM8333_FIFO_TRANSFER_SIZE 16 |
#define LM8333_KEYPAD_IRQ (1 << 0) |
#define LM8333_NUM_COLS 16 |
#define LM8333_NUM_ROWS 8 |
#define LM8333_READ_ERROR 0xF0 |
#define LM8333_READ_INT 0xD0 |
#define LM8333_READ_RETRIES 2 |
#define LM8333_ROW_SHIFT 4 |
MODULE_DESCRIPTION |
( |
"LM8333 keyboard driver" |
| ) |
|
MODULE_DEVICE_TABLE |
( |
i2c |
, |
|
|
lm8333_id |
|
|
) |
| |
module_i2c_driver |
( |
lm8333_driver |
| ) |
|
MODULE_LICENSE |
( |
"GPL v2" |
| ) |
|