]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (jc42) Fix name to have no illegal characters
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 17 Apr 2020 09:28:53 +0000 (11:28 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 18 Apr 2020 17:13:07 +0000 (10:13 -0700)
commita75de044de32c9b0059115839d89736c202d231b
treedc003e1ec97cd3ae67c530e7523ee8d56386f63e
parentc31a8bba84975e3a137ca41b83538e12f93d4369
hwmon: (jc42) Fix name to have no illegal characters

The jc42 driver passes I2C client's name as hwmon device name. In case
of device tree probed devices this ends up being part of the compatible
string, "jc-42.4-temp". This name contains hyphens and the hwmon core
doesn't like this:

jc42 2-0018: hwmon: 'jc-42.4-temp' is not a valid name attribute, please fix

This changes the name to "jc42" which doesn't have any illegal
characters.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20200417092853.31206-1-s.hauer@pengutronix.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/jc42.c