Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 346973
b: refs/heads/master
c: 5cc0dfe
h: refs/heads/master
i:
  346971: 63e9c5d
v: v3
  • Loading branch information
Dmitry Torokhov committed Nov 29, 2012
1 parent 50cd278 commit a974e45
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cdbe8a86379b9002598a4d14791dc8e790b1f5f5
refs/heads/master: 5cc0dfe043f84a777bf9d66dc48cc2b83709c9ef
29 changes: 14 additions & 15 deletions trunk/drivers/input/keyboard/tca8418_keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,6 @@
#define KEY_EVENT_CODE 0x7f
#define KEY_EVENT_VALUE 0x80


static const struct i2c_device_id tca8418_id[] = {
{ TCA8418_NAME, 8418, },
{ }
};
MODULE_DEVICE_TABLE(i2c, tca8418_id);

#ifdef CONFIG_OF
static const struct of_device_id tca8418_dt_ids[] __devinitconst = {
{ .compatible = "ti,tca8418", },
{ }
};
MODULE_DEVICE_TABLE(of, tca8418_dt_ids);
#endif

struct tca8418_keypad {
unsigned int irq;
unsigned int row_shift;
Expand Down Expand Up @@ -419,6 +404,20 @@ static int tca8418_keypad_remove(struct i2c_client *client)
return 0;
}

static const struct i2c_device_id tca8418_id[] = {
{ TCA8418_NAME, 8418, },
{ }
};
MODULE_DEVICE_TABLE(i2c, tca8418_id);

#ifdef CONFIG_OF
static const struct of_device_id tca8418_dt_ids[] __devinitconst = {
{ .compatible = "ti,tca8418", },
{ }
};
MODULE_DEVICE_TABLE(of, tca8418_dt_ids);
#endif

static struct i2c_driver tca8418_keypad_driver = {
.driver = {
.name = TCA8418_NAME,
Expand Down

0 comments on commit a974e45

Please sign in to comment.