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

2017-01-25 Thread Jean Delvare
On Wed, 25 Jan 2017 01:34:40 -0800, Guenter Roeck wrote: > 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 > --- > v3: hwmon_device_register() needs to call

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

2017-01-25 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 --- v3: hwmon_device_register() needs to call __hwmon_device_register() directly. v2: One should use ERR_PTR where appropriate