From: David Brownell Date: Wed, 3 May 2006 12:14:10 +0000 (-0700) Subject: [PATCH] ARM: OMAP: ads7846 updates, mostly for hwmon X-Git-Tag: v2.6.17-omap1~86 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=659cb49d6a8ba8d5651e53dd22a0addab6a479e6;p=pandora-kernel.git [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 Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed