diff options
| author | Michael Tandy <lkml@mjt.me.uk> | 2011-09-21 01:42:51 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-09-21 01:46:32 -0400 |
| commit | 5eb9f900e5b524682ace6771529826c4ce26b6ea (patch) | |
| tree | 5de1c416327d6a767b3013276608866b58c64bb9 /include/linux/input | |
| parent | cca84699a079a91b0a0cb4f2da8548e56859376a (diff) | |
Input: adxl34x - documentation cleanup
This patch clarifies a few bits of documentation in the header file
for the adxl34x driver.
Signed-off-by: Michael Tandy <lkml@mkt.me.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input')
| -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 df00d998a44..57e01a7cb00 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 | ||
