]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] ARM: OMAP: ads7846 updates, mostly for hwmon
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 3 May 2006 12:14:10 +0000 (05:14 -0700)
committerTony Lindgren <tony@atomide.com>
Wed, 3 May 2006 12:14:10 +0000 (05:14 -0700)
commit659cb49d6a8ba8d5651e53dd22a0addab6a479e6
tree661c4170230134831edea5f5b7d01304716efb0a
parent0b50a2170328c2f1057e20889f3936a4ee43a80c
[PATCH] ARM: OMAP: ads7846 updates, mostly for hwmon

The ads784x chips include not just touchscreen sensors but also temperature
and voltage sensors, which are traditional hwmon fodder.

 - Register with the hwmon framework
    * hwmon needs to use subsys_init() so it's available early enough
 - Adopt hwmon convention for presenting voltages:
    * Report voltages in millivolts
    * Attribute names are "in[0-8]_input" (meaningless, ugh)
 - Be more accurate for the hwmon values:
    * vBATT gets range-adjusted
    * Discard the extra bit sent before the sample.

Battery measurements help during battery recharge monitoring.  On OSK/Mistral,
the measured voltage agreed with a multimeter until the fourth decimal place.

NOTE:  this version is only for the OMAP tree, which has some byteswap bugs
(and other changes) that are not found in the upstream kernels.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/hwmon/hwmon.c
drivers/input/touchscreen/Kconfig
drivers/input/touchscreen/ads7846.c