diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-27 02:44:20 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-27 02:44:20 -0400 |
commit | 396e6e49c58bb23d1814d3c240c736c9f01523c5 (patch) | |
tree | a6ec8dac896c3ea3ac7b1bb0dce8728766afcf91 /include/linux/input/adxl34x.h | |
parent | 18974369cfe23acf16d0fb79e0d1fba7a9a95ec0 (diff) | |
parent | 6ad390a25a9d1d8606b9b826878f0a30639dc2b3 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (68 commits)
Input: adp5589-keys - add support for the ADP5585 derivatives
Input: imx_keypad - add pm suspend and resume support
Input: force feedback - potential integer wrap in input_ff_create()
Input: tsc2007 - make sure that X plate resistance is specified
Input: serio_raw - fix memory leak when closing char device
Input: serio_raw - kick clients when disconnecting port
Input: serio_raw - explicitly mark disconnected ports as dead
Input: serio_raw - fix coding style issues
Input: serio_raw - use dev_*() for messages
Input: serio_raw - use bool for boolean data
Input: serio_raw - perform proper locking when adding clients to list
Input: serio_raw - rename serio_raw_list to serio_raw_client
Input: serio_raw - use kref instead of rolling out its own refcounting
Input: psmouse - switch to using dev_*() for messages
Input: wacom - correct max Y value on medium bamboos
Input: wacom - add ABS_DISTANCE to Bamboo Pen reports
Input: wacom - remove unneeded touch pressure initialization
Input: lm8323 - wrap suspend and resume in CONFIG_PM_SLEEP
Input: ad7879-i2c - wrap suspend and resume in CONFIG_PM_SLEEP
Input: synaptics_i2c - wrap suspend and resume in CONFIG_PM_SLEEP
...
Diffstat (limited to 'include/linux/input/adxl34x.h')
-rw-r--r-- | include/linux/input/adxl34x.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/include/linux/input/adxl34x.h b/include/linux/input/adxl34x.h index df00d998a44a..57e01a7cb006 100644 --- a/include/linux/input/adxl34x.h +++ b/include/linux/input/adxl34x.h | |||
@@ -30,8 +30,9 @@ struct adxl34x_platform_data { | |||
30 | * Y, or Z participation in Tap detection. A '0' excludes the | 30 | * Y, or Z participation in Tap detection. A '0' excludes the |
31 | * selected axis from participation in Tap detection. | 31 | * selected axis from participation in Tap detection. |
32 | * Setting the SUPPRESS bit suppresses Double Tap detection if | 32 | * Setting the SUPPRESS bit suppresses Double Tap detection if |
33 | * acceleration greater than tap_threshold is present between | 33 | * acceleration greater than tap_threshold is present during the |
34 | * taps. | 34 | * tap_latency period, i.e. after the first tap but before the |
35 | * opening of the second tap window. | ||
35 | */ | 36 | */ |
36 | 37 | ||
37 | #define ADXL_SUPPRESS (1 << 3) | 38 | #define ADXL_SUPPRESS (1 << 3) |
@@ -226,13 +227,13 @@ struct adxl34x_platform_data { | |||
226 | * detection will begin and prevent the detection of activity. This | 227 | * detection will begin and prevent the detection of activity. This |
227 | * bit serially links the activity and inactivity functions. When '0' | 228 | * bit serially links the activity and inactivity functions. When '0' |
228 | * the inactivity and activity functions are concurrent. Additional | 229 | * the inactivity and activity functions are concurrent. Additional |
229 | * information can be found in the Application section under Link | 230 | * information can be found in the ADXL34x datasheet's Application |
230 | * Mode. | 231 | * section under Link Mode. |
231 | * AUTO_SLEEP: A '1' sets the ADXL34x to switch to Sleep Mode | 232 | * AUTO_SLEEP: A '1' sets the ADXL34x to switch to Sleep Mode |
232 | * when inactivity (acceleration has been below inactivity_threshold | 233 | * when inactivity (acceleration has been below inactivity_threshold |
233 | * for at least inactivity_time) is detected and the LINK bit is set. | 234 | * for at least inactivity_time) is detected and the LINK bit is set. |
234 | * A '0' disables automatic switching to Sleep Mode. See SLEEP | 235 | * A '0' disables automatic switching to Sleep Mode. See the |
235 | * for further description. | 236 | * Sleep Bit section of the ADXL34x datasheet for more information. |
236 | */ | 237 | */ |
237 | 238 | ||
238 | #define ADXL_LINK (1 << 5) | 239 | #define ADXL_LINK (1 << 5) |
@@ -266,6 +267,12 @@ struct adxl34x_platform_data { | |||
266 | 267 | ||
267 | u8 watermark; | 268 | u8 watermark; |
268 | 269 | ||
270 | /* | ||
271 | * When acceleration measurements are received from the ADXL34x | ||
272 | * events are sent to the event subsystem. The following settings | ||
273 | * select the event type and event code for new x, y and z axis data | ||
274 | * respectively. | ||
275 | */ | ||
269 | u32 ev_type; /* EV_ABS or EV_REL */ | 276 | u32 ev_type; /* EV_ABS or EV_REL */ |
270 | 277 | ||
271 | u32 ev_code_x; /* ABS_X,Y,Z or REL_X,Y,Z */ | 278 | u32 ev_code_x; /* ABS_X,Y,Z or REL_X,Y,Z */ |
@@ -289,7 +296,7 @@ struct adxl34x_platform_data { | |||
289 | u32 ev_code_act_inactivity; /* EV_KEY */ | 296 | u32 ev_code_act_inactivity; /* EV_KEY */ |
290 | 297 | ||
291 | /* | 298 | /* |
292 | * Use ADXL34x INT2 instead of INT1 | 299 | * Use ADXL34x INT2 pin instead of INT1 pin for interrupt output |
293 | */ | 300 | */ |
294 | u8 use_int2; | 301 | u8 use_int2; |
295 | 302 | ||