summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/adc128d818.c
Commit message (Collapse)AuthorAgeFilesLines
* hwmon: (adc128d818) Do proper sign extensionRasmus Villemoes2015-01-251-1/+2
| | | | | | | | | | data->temp[index] has type s16. Because of C's promotion rules, (data->temp[index] << 7) >> 7 is exactly the same as data->temp[index]. The intention was to use bit 8 as a sign bit, so do that using the existing API. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (adc128d818) Drop write support on inX_input attributesGuenter Roeck2014-07-071-14/+14
| | | | | | | | | | Writes into input registers doesn't make sense, even more so since the writes actually ended up writing into the maximum limit registers. Drop it. Cc: stable@vger.kernel.org Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: Driver for TI ADC128D818Guenter Roeck2014-03-031-0/+491
ADC128D818 is a System Monitor with Temperature Sensor. It is similar to LM80 and LM96080, but has 16 bit wide sensor registers and no fan speed monitoring. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
OpenPOWER on IntegriCloud