diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2021-03-17 05:02:30 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2021-04-20 15:50:14 +0200 |
commit | f807e8be46991a5a58774a4d6344359b01c949e8 (patch) | |
tree | 94a41b2d8b272e60c3d990216d6d1f39cbebc88b /drivers/hwmon/max16065.c | |
parent | hwmon: add driver for NZXT Kraken X42/X52/X62/X72 (diff) | |
download | linux-f807e8be46991a5a58774a4d6344359b01c949e8.tar.xz linux-f807e8be46991a5a58774a4d6344359b01c949e8.zip |
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>
Diffstat (limited to 'drivers/hwmon/max16065.c')
0 files changed, 0 insertions, 0 deletions