* [PATCH] rx51-battery: Set name to rx51-battery
@ 2015-07-28 18:44 Pali Rohár
2015-08-02 7:24 ` Pavel Machek
0 siblings, 1 reply; 2+ messages in thread
From: Pali Rohár @ 2015-07-28 18:44 UTC (permalink / raw)
To: Sebastian Reichel, Dmitry Eremin-Solenikov, David Woodhouse
Cc: linux-pm, linux-kernel, Pali Rohár
For compatibility between board code and DT, set battery name to same value.
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
---
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);
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] rx51-battery: Set name to rx51-battery
2015-07-28 18:44 [PATCH] rx51-battery: Set name to rx51-battery Pali Rohár
@ 2015-08-02 7:24 ` Pavel Machek
0 siblings, 0 replies; 2+ messages in thread
From: Pavel Machek @ 2015-08-02 7:24 UTC (permalink / raw)
To: Pali Rohár
Cc: Sebastian Reichel, Dmitry Eremin-Solenikov, David Woodhouse,
linux-pm, linux-kernel
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 <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-08-02 7:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-28 18:44 [PATCH] rx51-battery: Set name to rx51-battery Pali Rohár
2015-08-02 7:24 ` Pavel Machek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).