From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751815AbbHBHY4 (ORCPT ); Sun, 2 Aug 2015 03:24:56 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47004 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531AbbHBHYz (ORCPT ); Sun, 2 Aug 2015 03:24:55 -0400 Date: Sun, 2 Aug 2015 09:24:52 +0200 From: Pavel Machek To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] rx51-battery: Set name to rx51-battery Message-ID: <20150802072452.GG32270@amd> References: <1438109081-8204-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1438109081-8204-1-git-send-email-pali.rohar@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2015-07-28 20:44:41, Pali Rohár wrote: > For compatibility between board code and DT, set battery name to same value. > > Signed-off-by: Pali Rohár Acked-by: Pavel Machek > --- > drivers/power/rx51_battery.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/power/rx51_battery.c b/drivers/power/rx51_battery.c > index ac62069..af9383d 100644 > --- a/drivers/power/rx51_battery.c > +++ b/drivers/power/rx51_battery.c > @@ -215,7 +215,7 @@ static int rx51_battery_probe(struct platform_device *pdev) > platform_set_drvdata(pdev, di); > > di->dev = &pdev->dev; > - di->bat_desc.name = dev_name(&pdev->dev); > + di->bat_desc.name = "rx51-battery"; > di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; > di->bat_desc.properties = rx51_battery_props; > di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props); -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html