mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-01 10:33:27 +00:00
cfa3b24c38
This driver will report the heading values in degrees to the sysfs interface. The values returned are headings . e.g. 245.6 Alan: Cleanups requested now all folded in and a sysfs description to keep Andrew happy. The sysfs description now resembles hwmon. Signed-off-by: Kalhan Trisal <kalhan.trisal@intel.com> Reviewed-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Alan Cox <alan@linux.intel.com> Cc: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
21 lines
640 B
Text
21 lines
640 B
Text
Where: /sys/bus/i2c/devices/.../heading0_input
|
|
Date: April 2010
|
|
Kernel Version: 2.6.36?
|
|
Contact: alan.cox@intel.com
|
|
Description: Reports the current heading from the compass as a floating
|
|
point value in degrees.
|
|
|
|
Where: /sys/bus/i2c/devices/.../power_state
|
|
Date: April 2010
|
|
Kernel Version: 2.6.36?
|
|
Contact: alan.cox@intel.com
|
|
Description: Sets the power state of the device. 0 sets the device into
|
|
sleep mode, 1 wakes it up.
|
|
|
|
Where: /sys/bus/i2c/devices/.../calibration
|
|
Date: April 2010
|
|
Kernel Version: 2.6.36?
|
|
Contact: alan.cox@intel.com
|
|
Description: Sets the calibration on or off (1 = on, 0 = off). See the
|
|
chip data sheet.
|
|
|