Re: [PATCH v3 2/3] hwmon: (pmbus): Replace - with _ in device names before registration

2021-03-19 Thread Guenter Roeck
On Wed, Mar 17, 2021 at 05:02:30PM +1300, Chris Packham wrote: > 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. > >

[PATCH v3 2/3] hwmon: (pmbus): Replace - with _ in device names before registration

2021-03-16 Thread Chris Packham
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 --- Notes: Changes in v3: - None