ir-kbd-i2c.h 679 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _IR_I2C
  2. #define _IR_I2C
  3. #include <media/ir-common.h>
  4. struct IR_i2c;
  5. struct IR_i2c {
  6. IR_KEYTAB_TYPE *ir_codes;
  7. struct i2c_client *c;
  8. struct input_dev *input;
  9. struct ir_input_state ir;
  10. /* Used to avoid fast repeating */
  11. unsigned char old;
  12. struct delayed_work work;
  13. char name[32];
  14. char phys[32];
  15. int (*get_key)(struct IR_i2c*, u32*, u32*);
  16. };
  17. /* Can be passed when instantiating an ir_video i2c device */
  18. struct IR_i2c_init_data {
  19. IR_KEYTAB_TYPE *ir_codes;
  20. const char *name;
  21. int (*get_key)(struct IR_i2c*, u32*, u32*);
  22. };
  23. #endif