]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pmbus) Replace - with _ in device names before registration
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 17 Mar 2021 04:02:30 +0000 (17:02 +1300)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 29 Mar 2021 22:04:41 +0000 (15:04 -0700)
commit5287ecd0a0fad8b50fe59ddcfd6cf437b00ba92a
treebb461fc659ab7d0509b06b7cb6d79545084ef8b0
parent7adc0d2e24659aad3973be70e8a2636a39208024
hwmon: (pmbus) Replace - with _ in device names before registration

The hwmon sysfs ABI requires that the `name` property doesn't include
any dashes. But when the pmbus code picks the name up from the device
tree it quite often does. Replace '-' with '_' before registering the
device.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20210317040231.21490-2-chris.packham@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c