summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/i5500_temp.c
Commit message (Collapse)AuthorAgeFilesLines
* hwmon: (i5500_temp) use permission-specific DEVICE_ATTR variantsJulia Lawall2017-01-021-3/+3
| | | | | | | | | | | | | Use DEVICE_ATTR_RO for read-only attributes. This simplifies the source code, improves readbility, and reduces the chance of inconsistencies. The conversion was done automatically using coccinelle. It was validated by compiling both the old and the new source code and comparing its text, data, and bss size. Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> [groeck: Updated description] Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (i5500_temp) Convert to use ATTRIBUTE_GROUPS macroAxel Lin2015-01-241-10/+3Star
| | | | | | | Use ATTRIBUTE_GROUPS macro to simplify the code a bit. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* hwmon: (i5500_temp) Convert to module_pci_driverAxel Lin2015-01-241-12/+1Star
| | | | | | | | Use module_pci_driver to simplify the code a bit. Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jean Delvare <jdelvare@suse.de>
* hwmon: (i5500_temp) Don't bind to disabled sensorsJean Delvare2015-01-241-0/+9
| | | | | | | | | | | On many motherboards, for an unknown reason, the thermal sensor seems to be disabled and will return a constant temperature value of 36.5 degrees Celsius. Don't bind to the device in that case, so that we don't report this bogus value to userspace. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Romain Dolbeau <romain@dolbeau.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (i5500_temp) Convert to devm_hwmon_device_register_with_groupsJean Delvare2015-01-241-58/+15Star
| | | | | | | | | Use devm_hwmon_device_register_with_groups() to simplify the code a bit. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Romain Dolbeau <romain@dolbeau.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (i5500_temp) New driver for the Intel 5500/5520/X58 chipsetsJean Delvare2015-01-241-0/+201
The Intel 5500, 5520 and X58 chipsets embed a digital thermal sensor. This new driver supports it. Note that on many boards the sensor seems to be disabled and reports the minimum value (36.5 degrees Celsius) all the time. Signed-off-by: Jean Delvare <jdelvare@suse.de> Tested-by: Romain Dolbeau <romain@dolbeau.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net>