diff options
author | Kalhan Trisal <kalhan.trisal@intel.com> | 2010-08-09 20:21:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-09 23:45:10 -0400 |
commit | cfa3b24c38b58cb6acabe6441b4668e530e957af (patch) | |
tree | 666af3dd6eb990d244ef19d16d099107da11b28d /Documentation/ABI | |
parent | 5f1209a1a4cf24798408fa0893258dcbefcf6be9 (diff) |
hmc6352: add driver for the HMC6352 compass
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>
Diffstat (limited to 'Documentation/ABI')
-rw-r--r-- | Documentation/ABI/testing/sysfs-bus-i2c-devices-hm6352 | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/ABI/testing/sysfs-bus-i2c-devices-hm6352 b/Documentation/ABI/testing/sysfs-bus-i2c-devices-hm6352 new file mode 100644 index 000000000000..feb2e4a87075 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-bus-i2c-devices-hm6352 | |||
@@ -0,0 +1,21 @@ | |||
1 | Where: /sys/bus/i2c/devices/.../heading0_input | ||
2 | Date: April 2010 | ||
3 | Kernel Version: 2.6.36? | ||
4 | Contact: alan.cox@intel.com | ||
5 | Description: Reports the current heading from the compass as a floating | ||
6 | point value in degrees. | ||
7 | |||
8 | Where: /sys/bus/i2c/devices/.../power_state | ||
9 | Date: April 2010 | ||
10 | Kernel Version: 2.6.36? | ||
11 | Contact: alan.cox@intel.com | ||
12 | Description: Sets the power state of the device. 0 sets the device into | ||
13 | sleep mode, 1 wakes it up. | ||
14 | |||
15 | Where: /sys/bus/i2c/devices/.../calibration | ||
16 | Date: April 2010 | ||
17 | Kernel Version: 2.6.36? | ||
18 | Contact: alan.cox@intel.com | ||
19 | Description: Sets the calibration on or off (1 = on, 0 = off). See the | ||
20 | chip data sheet. | ||
21 | |||