hwmon: Make name attribute mandatory for new APIs
authorGuenter Roeck <linux@roeck-us.net>
Tue, 24 Jan 2017 14:32:57 +0000 (06:32 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 25 Jan 2017 14:14:26 +0000 (06:14 -0800)
commit8353863a52a82c7701d9d10433bea703fd24ec2d
tree48e40171e67621489d4bc6ba3db6fba3e3d70a00
parent68f0c8c923951eef2cde1d9ab6bc598aceecfc27
hwmon: Make name attribute mandatory for new APIs

It does not make sense to use one of the the new APIs when not
even providing a name attribute. Make it mandatory.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c