diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-05-05 23:13:05 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2013-06-03 11:07:05 +0200 |
commit | 8b1fded7a352cbd926b314d3b42a538a848c15d8 (patch) | |
tree | 90efd3433e991212cdd00ac9ff010e1488999b17 /drivers/hid/Makefile | |
parent | HID: wiimote: add sysfs extension/device-type attrs (diff) | |
download | linux-8b1fded7a352cbd926b314d3b42a538a848c15d8.tar.xz linux-8b1fded7a352cbd926b314d3b42a538a848c15d8.zip |
HID: wiimote: add "bboard_calib" attribute
Balance-Boards provide 3 16bit calibration values for each of the 4
sensors. We provide these now as 192bit value via a new "bboard_calib"
sysfs attribute.
We also re-read the calibration data from the device whenever user-space
attempts to read this file. On normal Nintendo boards, this always
produces the same results, however, on some 3rd party devices these values
change until the device is fully initialized. As I have currently no idea
how long to wait until it's ready (sometimes takes up to 10s?) we provide
a simple workaround for users by reading this file.
If we, at some point, figure out how it works, we can implement it in the
kernel and provide offline data via "bboard_calib". This won't break
user-space then.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/Makefile')
0 files changed, 0 insertions, 0 deletions