[Letux-kernel] [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421

H. Nikolaus Schaller hns at goldelico.com
Fri Sep 8 19:44:00 CEST 2017

> Am 08.09.2017 um 19:40 schrieb Pali Rohár <pali.rohar at gmail.com>:
> On Friday 08 September 2017 19:38:37 H. Nikolaus Schaller wrote:
>> and here is the result:
>>> root at letux:~# dmesg|fgrep bq27
>>> [   10.391235] bq27xxx_battery_setup
>>> [   10.391265] bq27xxx_battery_setup: dm_regs=bf0520e0
>>> [   10.393798] (NULL device *): hwmon: 'bq27500-1-0' is not a valid name attribute, please fix
> Hi! IIRC hwmon name cannot contain '-'. Use '_' instead.

Yes. I'd like to see it fixed as well...

AFAIR it is a general problem outside of battery drivers and IMHO there is some note somewhere.
Nobody "uses" a '-'. It is some logic that automatically creates node names which hwmon rejects.


More information about the Letux-kernel mailing list