summaryrefslogtreecommitdiffstats
path: root/kernel/kexec_core.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2015-08-26 19:38:11 -0700
committerGuenter Roeck <linux@roeck-us.net>2016-09-08 21:34:15 -0700
commitd560168b5d0fb4a70c74b386564072a819d9bf71 (patch)
treea6547dcb07cfaa2ec52d6b52136d9ac9a66cecbc /kernel/kexec_core.c
parentc9ebbe6f23f43f4520d9e3c4fe1384963848088e (diff)
downloadlinux-d560168b5d0fb4a70c74b386564072a819d9bf71.tar.bz2
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/kexec_core.c')
0 files changed, 0 insertions, 0 deletions