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
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
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
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
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
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