summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm95234.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* hwmon: (lm95234) use permission-specific DEVICE_ATTR variantsJulia Lawall2017-01-021-6/+6
| | | | | | | | | | | | | Use DEVICE_ATTR_RW for read/write 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: (lm95234) Add support for LM95233Guenter Roeck2014-12-021-26/+65
| | | | | | | | LM95233 is similar to LM95234, but it only supports two instead of four external temperature sensors. Reviewed-by: Jean Delvare <jdelvare@suse.de> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (lm95234) fix coccinelle warningsFengguang Wu2013-10-181-4/+1
| | | | | | | | | | | | drivers/hwmon/lm95234.c:704:1-3: WARNING: PTR_RET can be used Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR Generated by: coccinelle/api/ptr_ret.cocci CC: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: (lm95234) Convert to use devm_hwmon_device_register_with_groupsGuenter Roeck2013-10-181-87/+50
| | | | | | Also use new macro ATTRIBUTE_GROUPS to declare attribute groups. Signed-off-by: Guenter Roeck <linux@roeck-us.net>
* hwmon: Add driver for LM95234Guenter Roeck2013-04-081-0/+769
Signed-off-by: Guenter Roeck <linux@roeck-us.net>