keyboard-pxa930_rotary.h 603 B

1234567891011121314151617181920
  1. #ifndef __ASM_ARCH_PXA930_ROTARY_H
  2. #define __ASM_ARCH_PXA930_ROTARY_H
  3. /* NOTE:
  4. *
  5. * rotary can be either interpreted as a ralative input event (e.g.
  6. * REL_WHEEL or REL_HWHEEL) or a specific key event (e.g. UP/DOWN
  7. * or LEFT/RIGHT), depending on if up_key & down_key are assigned
  8. * or rel_code is assigned a non-zero value. When all are non-zero,
  9. * up_key and down_key will be preferred.
  10. */
  11. struct pxa930_rotary_platform_data {
  12. int up_key;
  13. int down_key;
  14. int rel_code;
  15. };
  16. void __init pxa930_set_rotarykey_info(struct pxa930_rotary_platform_data *info);
  17. #endif /* __ASM_ARCH_PXA930_ROTARY_H */