diff options
Diffstat (limited to 'include/media/ir-kbd-i2c.h')
| -rw-r--r-- | include/media/ir-kbd-i2c.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/media/ir-kbd-i2c.h b/include/media/ir-kbd-i2c.h index 07963d705400..3ad4ed5402fb 100644 --- a/include/media/ir-kbd-i2c.h +++ b/include/media/ir-kbd-i2c.h | |||
| @@ -7,7 +7,7 @@ struct IR_i2c; | |||
| 7 | 7 | ||
| 8 | struct IR_i2c { | 8 | struct IR_i2c { |
| 9 | IR_KEYTAB_TYPE *ir_codes; | 9 | IR_KEYTAB_TYPE *ir_codes; |
| 10 | struct i2c_client c; | 10 | struct i2c_client *c; |
| 11 | struct input_dev *input; | 11 | struct input_dev *input; |
| 12 | struct ir_input_state ir; | 12 | struct ir_input_state ir; |
| 13 | 13 | ||
| @@ -15,7 +15,15 @@ struct IR_i2c { | |||
| 15 | unsigned char old; | 15 | unsigned char old; |
| 16 | 16 | ||
| 17 | struct delayed_work work; | 17 | struct delayed_work work; |
| 18 | char name[32]; | ||
| 18 | char phys[32]; | 19 | char phys[32]; |
| 19 | int (*get_key)(struct IR_i2c*, u32*, u32*); | 20 | int (*get_key)(struct IR_i2c*, u32*, u32*); |
| 20 | }; | 21 | }; |
| 22 | |||
| 23 | /* Can be passed when instantiating an ir_video i2c device */ | ||
| 24 | struct IR_i2c_init_data { | ||
| 25 | IR_KEYTAB_TYPE *ir_codes; | ||
| 26 | const char *name; | ||
| 27 | int (*get_key)(struct IR_i2c*, u32*, u32*); | ||
| 28 | }; | ||
| 21 | #endif | 29 | #endif |
