]> bbs.cooldavid.org Git - net-next-2.6.git/commit
hwmon: (ltc4245) Expose all GPIO pins as analog voltages
authorIra W. Snyder <iws@ovro.caltech.edu>
Sat, 14 Aug 2010 19:08:49 +0000 (21:08 +0200)
committerJean Delvare <khali@linux-fr.org>
Sat, 14 Aug 2010 19:08:49 +0000 (21:08 +0200)
commit5950ec8d3e47a08ec0b678a0e0ba5d1b9b62dd8e
tree8cac7d3dadf50be14b2ac0441e61ecd8935f27e0
parentb9783dcebe952bf73449fe70a19ee4814adc81a0
hwmon: (ltc4245) Expose all GPIO pins as analog voltages

Add support for exposing all GPIO pins as analog voltages. Though this is
not an ideal use of the chip, some hardware engineers may decide that the
LTC4245 meets their design requirements when studying the datasheet.

The GPIO pins are sampled in round-robin fashion, meaning that a slow
reader will see stale data. A userspace application can detect this,
because it will get -EAGAIN when reading from a sysfs file which contains
stale data.

Users can choose to use this feature on a per-chip basis by using either
platform data or the OF device tree (where applicable).

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Documentation/hwmon/ltc4245
drivers/hwmon/ltc4245.c
include/linux/i2c/ltc4245.h [new file with mode: 0644]