![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * lm8323.h - Configuration for LM8323 keypad driver. 0004 */ 0005 0006 #ifndef __LINUX_LM8323_H 0007 #define __LINUX_LM8323_H 0008 0009 #include <linux/types.h> 0010 0011 /* 0012 * Largest keycode that the chip can send, plus one, 0013 * so keys can be mapped directly at the index of the 0014 * LM8323 keycode instead of subtracting one. 0015 */ 0016 #define LM8323_KEYMAP_SIZE (0x7f + 1) 0017 0018 #define LM8323_NUM_PWMS 3 0019 0020 struct lm8323_platform_data { 0021 int debounce_time; /* Time to watch for key bouncing, in ms. */ 0022 int active_time; /* Idle time until sleep, in ms. */ 0023 0024 int size_x; 0025 int size_y; 0026 bool repeat; 0027 const unsigned short *keymap; 0028 0029 const char *pwm_names[LM8323_NUM_PWMS]; 0030 0031 const char *name; /* Device name. */ 0032 }; 0033 0034 #endif /* __LINUX_LM8323_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |