Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756741AbdIHRoF (ORCPT ); Fri, 8 Sep 2017 13:44:05 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.160]:32956 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754777AbdIHRoD (ORCPT ); Fri, 8 Sep 2017 13:44:03 -0400 X-RZG-AUTH: :JGIXVUS7cutRB/49FwqZ7WcecEarQROEYabkiUo6mSAGQ+qKIDwoIDdYJQ== X-RZG-CLASS-ID: mo00 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH resend v2] power: supply: bq27xxx: enable writing capacity values for bq27421 From: "H. Nikolaus Schaller" In-Reply-To: <20170908174033.GC23140@pali> Date: Fri, 8 Sep 2017 19:44:00 +0200 Cc: Liam Breck , Sebastian Reichel , "Andrew F. Davis" , Linux PM mailing list , linux-kernel , Discussions about the Letux Kernel , kernel@pyra-handheld.com Message-Id: <584BDB47-100E-4DB6-B5F5-A701FFC8C096@goldelico.com> References: <7428DD60-FE09-41C4-9DBC-FFDCB9D0B591@goldelico.com> <3A487394-3755-4EA0-86C6-6855DA0AC547@goldelico.com> <9903AE74-6BAA-4051-ADFC-0DB5972AF26E@goldelico.com> <20170908174033.GC23140@pali> To: =?utf-8?Q?Pali_Roh=C3=A1r?= X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v88HiCYE027231 Content-Length: 718 Lines: 21 > Am 08.09.2017 um 19:40 schrieb Pali Rohár : > > On Friday 08 September 2017 19:38:37 H. Nikolaus Schaller wrote: >> and here is the result: >> >>> root@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. BR, Nikolaus