diff options
author | Christopher Hudson <chris.hudson.comp.eng@gmail.com> | 2012-03-16 22:47:47 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-03-16 22:49:32 -0700 |
commit | 043916608c4b309e98a1650520ed4e88ec5e9123 (patch) | |
tree | dc6dadf7713315f77d13d07a00fd971f314c4ae2 /include/linux/input/kxtj9.h | |
parent | 104594b01ce750c91a19e9f1d8fe6b24ea8f9a59 (diff) | |
download | lwn-043916608c4b309e98a1650520ed4e88ec5e9123.tar.gz lwn-043916608c4b309e98a1650520ed4e88ec5e9123.zip |
Input: kxtj9 - who_am_i check value and initial data rate fixes
Several fixes based on customer feedback:
* WHO_AM_I value has changed since preliminary parts used for initial
testing;
* Output of le16_to_cpu must be saved to memory before shifting to
preserve sign;
* Initial data rate was not extracted from data control register init.
This was causing the initial data rate to be set to maximum until
it was changed. To fix this problem, it made more sense to specify
initial data rate and extract the register mask from that.
Signed-off-by: Chris Hudson <chudson@kionix.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input/kxtj9.h')
-rw-r--r-- | include/linux/input/kxtj9.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/linux/input/kxtj9.h b/include/linux/input/kxtj9.h index f6bac89537b8..d415579b56fe 100644 --- a/include/linux/input/kxtj9.h +++ b/include/linux/input/kxtj9.h @@ -24,6 +24,7 @@ struct kxtj9_platform_data { unsigned int min_interval; /* minimum poll interval (in milli-seconds) */ + unsigned int init_interval; /* initial poll interval (in milli-seconds) */ /* * By default, x is axis 0, y is axis 1, z is axis 2; these can be @@ -52,16 +53,6 @@ struct kxtj9_platform_data { #define KXTJ9_G_8G (1 << 4) u8 g_range; - /* DATA_CTRL_REG: controls the output data rate of the part */ - #define ODR12_5F 0 - #define ODR25F 1 - #define ODR50F 2 - #define ODR100F 3 - #define ODR200F 4 - #define ODR400F 5 - #define ODR800F 6 - u8 data_odr_init; - int (*init)(void); void (*exit)(void); int (*power_on)(void); |