diff options
author | Guenter Roeck <linux@roeck-us.net> | 2015-08-27 04:38:11 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-09-09 06:34:15 +0200 |
commit | d560168b5d0fb4a70c74b386564072a819d9bf71 (patch) | |
tree | a6547dcb07cfaa2ec52d6b52136d9ac9a66cecbc /kernel/audit_watch.c | |
parent | hwmon: (core) Order include files alphabetically (diff) | |
download | linux-d560168b5d0fb4a70c74b386564072a819d9bf71.tar.xz linux-d560168b5d0fb4a70c74b386564072a819d9bf71.zip |
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>
Diffstat (limited to 'kernel/audit_watch.c')
0 files changed, 0 insertions, 0 deletions