Skip to content
Commit 04391660 authored by Christopher Hudson's avatar Christopher Hudson Committed by Dmitry Torokhov
Browse files

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: default avatarChris Hudson <chudson@kionix.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 104594b0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment