Re: [PATCH 1/7] hwmon: (core) New hwmon registration API

2016-07-10 Thread Guenter Roeck
Hi Jonathan, On 07/10/2016 08:51 AM, Jonathan Cameron wrote: On 26/06/16 04:26, 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

Re: [PATCH 1/7] hwmon: (core) New hwmon registration API

2016-07-10 Thread Guenter Roeck
Hi Jonathan, On 07/10/2016 08:51 AM, Jonathan Cameron wrote: On 26/06/16 04:26, 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

Re: [PATCH 1/7] hwmon: (core) New hwmon registration API

2016-07-10 Thread Jonathan Cameron
On 26/06/16 04:26, 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

Re: [PATCH 1/7] hwmon: (core) New hwmon registration API

2016-07-10 Thread Jonathan Cameron
On 26/06/16 04:26, 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

[PATCH 1/7] hwmon: (core) New hwmon registration API

2016-06-25 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

[PATCH 1/7] hwmon: (core) New hwmon registration API

2016-06-25 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