hwmon: Add convience macro to define simple static sensors
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 20 Mar 2019 14:58:17 +0000 (14:58 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commitc43a113ca2c807c3e66a5de0ec57d69803b8bc10
tree50c0115ea1f1177c373ff2c3f8f32529fba851f8
parentb429ebc86f2e389ba9388fdfac64dc30c70d21a6
hwmon: Add convience macro to define simple static sensors

It takes a fair amount of boiler plate code to add new sensors, add a
macro that can be used to specify simple static sensors.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
include/linux/hwmon.h