Searched refs:lm8333 (Results 1 - 2 of 2) sorted by relevance
/linux-4.4.14/include/linux/input/ |
H A D | lm8333.h | 9 struct lm8333; 20 extern int lm8333_read8(struct lm8333 *lm8333, u8 cmd); 21 extern int lm8333_write8(struct lm8333 *lm8333, u8 cmd, u8 val); 22 extern int lm8333_read_block(struct lm8333 *lm8333, u8 cmd, u8 len, u8 *buf);
|
/linux-4.4.14/drivers/input/keyboard/ |
H A D | lm8333.c | 16 #include <linux/input/lm8333.h> 36 struct lm8333 { struct 45 int lm8333_read8(struct lm8333 *lm8333, u8 cmd) lm8333_read8() argument 50 ret = i2c_smbus_read_byte_data(lm8333->client, cmd); lm8333_read8() 56 int lm8333_write8(struct lm8333 *lm8333, u8 cmd, u8 val) lm8333_write8() argument 61 ret = i2c_smbus_write_byte_data(lm8333->client, cmd, val); lm8333_write8() 67 int lm8333_read_block(struct lm8333 *lm8333, u8 cmd, u8 len, u8 *buf) lm8333_read_block() argument 72 ret = i2c_smbus_read_i2c_block_data(lm8333->client, lm8333_read_block() 79 static void lm8333_key_handler(struct lm8333 *lm8333) lm8333_key_handler() argument 81 struct input_dev *input = lm8333->input; lm8333_key_handler() 86 ret = lm8333_read_block(lm8333, LM8333_FIFO_READ, lm8333_key_handler() 89 dev_err(&lm8333->client->dev, lm8333_key_handler() 99 input_report_key(input, lm8333->keycodes[code], pressed); lm8333_key_handler() 107 struct lm8333 *lm8333 = data; lm8333_irq_thread() local 108 u8 status = lm8333_read8(lm8333, LM8333_READ_INT); lm8333_irq_thread() 114 u8 err = lm8333_read8(lm8333, LM8333_READ_ERROR); lm8333_irq_thread() 119 lm8333_read_block(lm8333, LM8333_FIFO_READ, lm8333_irq_thread() 122 dev_err(&lm8333->client->dev, "Got error %02x\n", err); lm8333_irq_thread() 126 lm8333_key_handler(lm8333); lm8333_irq_thread() 136 struct lm8333 *lm8333; lm8333_probe() local 149 lm8333 = kzalloc(sizeof(*lm8333), GFP_KERNEL); lm8333_probe() 151 if (!lm8333 || !input) { lm8333_probe() 156 lm8333->client = client; lm8333_probe() 157 lm8333->input = input; lm8333_probe() 167 lm8333->keycodes, input); lm8333_probe() 172 err = lm8333_write8(lm8333, LM8333_DEBOUNCE, lm8333_probe() 179 err = lm8333_write8(lm8333, LM8333_ACTIVE, lm8333_probe() 187 "lm8333", lm8333); lm8333_probe() 195 i2c_set_clientdata(client, lm8333); lm8333_probe() 199 free_irq(client->irq, lm8333); lm8333_probe() 202 kfree(lm8333); lm8333_probe() 208 struct lm8333 *lm8333 = i2c_get_clientdata(client); lm8333_remove() local 210 free_irq(client->irq, lm8333); lm8333_remove() 211 input_unregister_device(lm8333->input); lm8333_remove() 212 kfree(lm8333); lm8333_remove() 218 { "lm8333", 0 }, 225 .name = "lm8333",
|
Completed in 167 milliseconds