lm8333             42 drivers/input/keyboard/lm8333.c int lm8333_read8(struct lm8333 *lm8333, u8 cmd)
lm8333             47 drivers/input/keyboard/lm8333.c 		ret = i2c_smbus_read_byte_data(lm8333->client, cmd);
lm8333             53 drivers/input/keyboard/lm8333.c int lm8333_write8(struct lm8333 *lm8333, u8 cmd, u8 val)
lm8333             58 drivers/input/keyboard/lm8333.c 		ret = i2c_smbus_write_byte_data(lm8333->client, cmd, val);
lm8333             64 drivers/input/keyboard/lm8333.c int lm8333_read_block(struct lm8333 *lm8333, u8 cmd, u8 len, u8 *buf)
lm8333             69 drivers/input/keyboard/lm8333.c 		ret = i2c_smbus_read_i2c_block_data(lm8333->client,
lm8333             76 drivers/input/keyboard/lm8333.c static void lm8333_key_handler(struct lm8333 *lm8333)
lm8333             78 drivers/input/keyboard/lm8333.c 	struct input_dev *input = lm8333->input;
lm8333             83 drivers/input/keyboard/lm8333.c 	ret = lm8333_read_block(lm8333, LM8333_FIFO_READ,
lm8333             86 drivers/input/keyboard/lm8333.c 		dev_err(&lm8333->client->dev,
lm8333             96 drivers/input/keyboard/lm8333.c 		input_report_key(input, lm8333->keycodes[code], pressed);
lm8333            104 drivers/input/keyboard/lm8333.c 	struct lm8333 *lm8333 = data;
lm8333            105 drivers/input/keyboard/lm8333.c 	u8 status = lm8333_read8(lm8333, LM8333_READ_INT);
lm8333            111 drivers/input/keyboard/lm8333.c 		u8 err = lm8333_read8(lm8333, LM8333_READ_ERROR);
lm8333            116 drivers/input/keyboard/lm8333.c 			lm8333_read_block(lm8333, LM8333_FIFO_READ,
lm8333            119 drivers/input/keyboard/lm8333.c 		dev_err(&lm8333->client->dev, "Got error %02x\n", err);
lm8333            123 drivers/input/keyboard/lm8333.c 		lm8333_key_handler(lm8333);
lm8333            133 drivers/input/keyboard/lm8333.c 	struct lm8333 *lm8333;
lm8333            146 drivers/input/keyboard/lm8333.c 	lm8333 = kzalloc(sizeof(*lm8333), GFP_KERNEL);
lm8333            148 drivers/input/keyboard/lm8333.c 	if (!lm8333 || !input) {
lm8333            153 drivers/input/keyboard/lm8333.c 	lm8333->client = client;
lm8333            154 drivers/input/keyboard/lm8333.c 	lm8333->input = input;
lm8333            164 drivers/input/keyboard/lm8333.c 					 lm8333->keycodes, input);
lm8333            169 drivers/input/keyboard/lm8333.c 		err = lm8333_write8(lm8333, LM8333_DEBOUNCE,
lm8333            176 drivers/input/keyboard/lm8333.c 		err = lm8333_write8(lm8333, LM8333_ACTIVE,
lm8333            184 drivers/input/keyboard/lm8333.c 				   "lm8333", lm8333);
lm8333            192 drivers/input/keyboard/lm8333.c 	i2c_set_clientdata(client, lm8333);
lm8333            196 drivers/input/keyboard/lm8333.c 	free_irq(client->irq, lm8333);
lm8333            199 drivers/input/keyboard/lm8333.c 	kfree(lm8333);
lm8333            205 drivers/input/keyboard/lm8333.c 	struct lm8333 *lm8333 = i2c_get_clientdata(client);
lm8333            207 drivers/input/keyboard/lm8333.c 	free_irq(client->irq, lm8333);
lm8333            208 drivers/input/keyboard/lm8333.c 	input_unregister_device(lm8333->input);
lm8333            209 drivers/input/keyboard/lm8333.c 	kfree(lm8333);
lm8333              9 include/linux/input/lm8333.h struct lm8333;
lm8333             20 include/linux/input/lm8333.h extern int lm8333_read8(struct lm8333 *lm8333, u8 cmd);
lm8333             21 include/linux/input/lm8333.h extern int lm8333_write8(struct lm8333 *lm8333, u8 cmd, u8 val);
lm8333             22 include/linux/input/lm8333.h extern int lm8333_read_block(struct lm8333 *lm8333, u8 cmd, u8 len, u8 *buf);