[PATCH] hwmon: Update documentation to clarify rules for the 'name' attribute

2017-01-24 Thread Guenter Roeck
Clarify that the name attribute must report a valid name, and the rules for valid names. Also clarify that the name parameter must be provided for all supported API functions. Signed-off-by: Guenter Roeck --- Documentation/hwmon/hwmon-kernel-api.txt | 4 Documentation/hwmon/sysfs-interface

Re: [PATCH v3 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-24 Thread Guenter Roeck
On Tue, Jan 24, 2017 at 04:02:20PM +0100, Andrea Merello wrote: > This patch adds a HWMON driver for ST Microelectronics STTS751 > temperature sensors. > > It does support manual-triggered conversions as well as automatic > conversions. The latter is used when the "event" or "therm" function > is

[PATCH v2] hwmon: Make name attribute mandatory for new APIs

2017-01-24 Thread Guenter Roeck
It does not make sense to use one of the the new APIs when not even providing a name attribute. Make it mandatory. Signed-off-by: Guenter Roeck --- v2: One should use ERR_PTR where appropriate drivers/hwmon/hwmon.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwmon/hwmon.c

[PATCH v3 2/2] DT: add binding documentation for STTS751

2017-01-24 Thread Andrea Merello
Signed-off-by: Andrea Merello Cc: Rob Herring Cc: Mark Rutland --- Documentation/devicetree/bindings/hwmon/stts751.txt | 15 +++ 1 file changed, 15 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/stts751.txt diff --git a/Documentation/devicetree/bindings/h

[PATCH v3 1/2] hwmon: new driver for ST stts751 thermal sensor

2017-01-24 Thread Andrea Merello
This patch adds a HWMON driver for ST Microelectronics STTS751 temperature sensors. It does support manual-triggered conversions as well as automatic conversions. The latter is used when the "event" or "therm" function is present (declaring the physical wire is attached in the DT). Thanks-to: LAB

[PATCH] hwmon: Make name attribute mandatory for new APIs

2017-01-24 Thread Guenter Roeck
It does not make sense to use one of the the new APIs when not even providing a name attribute. Make it mandatory. Signed-off-by: Guenter Roeck --- drivers/hwmon/hwmon.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c index 0c5660ccdbf4..ea