Home
last modified time | relevance | path

Searched hist:d560168b5d0fb4a70c74b386564072a819d9bf71 (Results 1 – 2 of 2) sorted by relevance

/linux/include/linux/
H A Dhwmon.hdiff d560168b5d0fb4a70c74b386564072a819d9bf71 Thu Aug 27 04:38:11 CEST 2015 Guenter Roeck <linux@roeck-us.net> hwmon: (core) New hwmon registration API

Up to now, each hwmon driver has to implement its own sysfs attributes.
This requires a lot of template code, and distracts from the driver's core
function to read and write chip registers.

To be able to reduce driver complexity, move sensor attribute handling
and thermal zone registration into hwmon core. By using the new API,
driver code and data size is typically reduced by 20-70%, depending
on driver complexity and the number of sysfs attributes supported.

With this patch, the new API only supports thermal sensors. Support for
other sensor types will be added with subsequent patches.

Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
/linux/drivers/hwmon/
H A Dhwmon.cdiff d560168b5d0fb4a70c74b386564072a819d9bf71 Thu Aug 27 04:38:11 CEST 2015 Guenter Roeck <linux@roeck-us.net> hwmon: (core) New hwmon registration API

Up to now, each hwmon driver has to implement its own sysfs attributes.
This requires a lot of template code, and distracts from the driver's core
function to read and write chip registers.

To be able to reduce driver complexity, move sensor attribute handling
and thermal zone registration into hwmon core. By using the new API,
driver code and data size is typically reduced by 20-70%, depending
on driver complexity and the number of sysfs attributes supported.

With this patch, the new API only supports thermal sensors. Support for
other sensor types will be added with subsequent patches.

Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Reviewed-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>