diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-07-16 02:27:36 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-07-16 02:52:33 -0400 |
commit | 20da92de8ec3c1d4ba7e5aca322d38b6ce634932 (patch) | |
tree | 2349309cc452763e649c75f94bf00c327376f8d2 /include/linux/input.h | |
parent | 72c8a94a585afea1f45aa8c4f6938ed6d05be57a (diff) |
Input: change input handlers to use bool when possible
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r-- | include/linux/input.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/input.h b/include/linux/input.h index a14de64ed16a..339d043ccb53 100644 --- a/include/linux/input.h +++ b/include/linux/input.h | |||
@@ -1099,7 +1099,6 @@ struct input_mt_slot { | |||
1099 | * @repeat_key: stores key code of the last key pressed; used to implement | 1099 | * @repeat_key: stores key code of the last key pressed; used to implement |
1100 | * software autorepeat | 1100 | * software autorepeat |
1101 | * @timer: timer for software autorepeat | 1101 | * @timer: timer for software autorepeat |
1102 | * @sync: set to 1 when there were no new events since last EV_SYNC | ||
1103 | * @abs: current values for reports from absolute axes | 1102 | * @abs: current values for reports from absolute axes |
1104 | * @rep: current values for autorepeat parameters (delay, rate) | 1103 | * @rep: current values for autorepeat parameters (delay, rate) |
1105 | * @mt: pointer to array of struct input_mt_slot holding current values | 1104 | * @mt: pointer to array of struct input_mt_slot holding current values |
@@ -1144,6 +1143,7 @@ struct input_mt_slot { | |||
1144 | * last user closes the device | 1143 | * last user closes the device |
1145 | * @going_away: marks devices that are in a middle of unregistering and | 1144 | * @going_away: marks devices that are in a middle of unregistering and |
1146 | * causes input_open_device*() fail with -ENODEV. | 1145 | * causes input_open_device*() fail with -ENODEV. |
1146 | * @sync: set to %true when there were no new events since last EV_SYN | ||
1147 | * @dev: driver model's view of this device | 1147 | * @dev: driver model's view of this device |
1148 | * @h_list: list of input handles associated with the device. When | 1148 | * @h_list: list of input handles associated with the device. When |
1149 | * accessing the list dev->mutex must be held | 1149 | * accessing the list dev->mutex must be held |
@@ -1180,8 +1180,6 @@ struct input_dev { | |||
1180 | unsigned int repeat_key; | 1180 | unsigned int repeat_key; |
1181 | struct timer_list timer; | 1181 | struct timer_list timer; |
1182 | 1182 | ||
1183 | int sync; | ||
1184 | |||
1185 | int abs[ABS_CNT]; | 1183 | int abs[ABS_CNT]; |
1186 | int rep[REP_MAX + 1]; | 1184 | int rep[REP_MAX + 1]; |
1187 | 1185 | ||
@@ -1213,6 +1211,8 @@ struct input_dev { | |||
1213 | unsigned int users; | 1211 | unsigned int users; |
1214 | bool going_away; | 1212 | bool going_away; |
1215 | 1213 | ||
1214 | bool sync; | ||
1215 | |||
1216 | struct device dev; | 1216 | struct device dev; |
1217 | 1217 | ||
1218 | struct list_head h_list; | 1218 | struct list_head h_list; |