Re: [PATCH v2 2/9] hwmon: (core) New hwmon registration API

2016-07-24 Thread Guenter Roeck
On 07/24/2016 12:08 PM, Jonathan Cameron wrote: On 17/07/16 06:30, Guenter Roeck wrote: 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 red

Re: [PATCH v2 2/9] hwmon: (core) New hwmon registration API

2016-07-24 Thread Jonathan Cameron
On 17/07/16 06:30, Guenter Roeck wrote: > 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 attrib

Re: [lkp] [PATCH v2 2/9] hwmon: (core) New hwmon registration API

2016-07-20 Thread Fengguang Wu
Hi, [auto build test ERROR on hwmon/hwmon-next] [also build test ERROR on v4.7-rc7 next-20160719] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Guenter-Roeck/hwmon-New-hwmon-registration-API/20

[PATCH v2 2/9] hwmon: (core) New hwmon registration API

2016-07-16 Thread Guenter Roeck
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 hw