* [PATCH] power_supply: Clean up wm97xx_battery warnings
@ 2010-01-27 20:45 Mark Brown
2010-01-29 10:11 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2010-01-27 20:45 UTC (permalink / raw)
To: Anton Vorontsov; +Cc: Marek Vasut, linux-kernel, Mark Brown
Staticise work_lock (nothing outside the driver has any reason to
see it) and specify dev when requesting the charger IRQ (since that's
what we pass in when we free it).
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
drivers/power/wm97xx_battery.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/wm97xx_battery.c
index 6ea3cb5..23eed35 100644
--- a/drivers/power/wm97xx_battery.c
+++ b/drivers/power/wm97xx_battery.c
@@ -26,7 +26,7 @@
static DEFINE_MUTEX(bat_lock);
static struct work_struct bat_work;
-struct mutex work_lock;
+static struct mutex work_lock;
static int bat_status = POWER_SUPPLY_STATUS_UNKNOWN;
static struct wm97xx_batt_info *gpdata;
static enum power_supply_property *prop;
@@ -203,7 +203,7 @@ static int __devinit wm97xx_bat_probe(struct platform_device *dev)
goto err2;
ret = request_irq(gpio_to_irq(pdata->charge_gpio),
wm97xx_chrg_irq, IRQF_DISABLED,
- "AC Detect", 0);
+ "AC Detect", dev);
if (ret)
goto err2;
props++; /* POWER_SUPPLY_PROP_STATUS */
--
1.6.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] power_supply: Clean up wm97xx_battery warnings
2010-01-27 20:45 [PATCH] power_supply: Clean up wm97xx_battery warnings Mark Brown
@ 2010-01-29 10:11 ` Marek Vasut
2010-01-29 14:04 ` Anton Vorontsov
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2010-01-29 10:11 UTC (permalink / raw)
To: Mark Brown; +Cc: Anton Vorontsov, linux-kernel
Dne St 27. ledna 2010 21:45:35 Mark Brown napsal(a):
> Staticise work_lock (nothing outside the driver has any reason to
> see it) and specify dev when requesting the charger IRQ (since that's
> what we pass in when we free it).
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Hi, thanks.
Acked-by: Marek Vasut <marek.vasut@gmail.com>
> ---
> drivers/power/wm97xx_battery.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/power/wm97xx_battery.c
> b/drivers/power/wm97xx_battery.c index 6ea3cb5..23eed35 100644
> --- a/drivers/power/wm97xx_battery.c
> +++ b/drivers/power/wm97xx_battery.c
> @@ -26,7 +26,7 @@
>
> static DEFINE_MUTEX(bat_lock);
> static struct work_struct bat_work;
> -struct mutex work_lock;
> +static struct mutex work_lock;
> static int bat_status = POWER_SUPPLY_STATUS_UNKNOWN;
> static struct wm97xx_batt_info *gpdata;
> static enum power_supply_property *prop;
> @@ -203,7 +203,7 @@ static int __devinit wm97xx_bat_probe(struct
> platform_device *dev) goto err2;
> ret = request_irq(gpio_to_irq(pdata->charge_gpio),
> wm97xx_chrg_irq, IRQF_DISABLED,
> - "AC Detect", 0);
> + "AC Detect", dev);
> if (ret)
> goto err2;
> props++; /* POWER_SUPPLY_PROP_STATUS */
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] power_supply: Clean up wm97xx_battery warnings
2010-01-29 10:11 ` Marek Vasut
@ 2010-01-29 14:04 ` Anton Vorontsov
0 siblings, 0 replies; 3+ messages in thread
From: Anton Vorontsov @ 2010-01-29 14:04 UTC (permalink / raw)
To: Marek Vasut; +Cc: Mark Brown, linux-kernel
On Fri, Jan 29, 2010 at 11:11:11AM +0100, Marek Vasut wrote:
> Dne St 27. ledna 2010 21:45:35 Mark Brown napsal(a):
> > Staticise work_lock (nothing outside the driver has any reason to
> > see it) and specify dev when requesting the charger IRQ (since that's
> > what we pass in when we free it).
> >
> > Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
>
> Hi, thanks.
>
> Acked-by: Marek Vasut <marek.vasut@gmail.com>
Applied to battery-2.6 (for 2.6.34). Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-29 14:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-27 20:45 [PATCH] power_supply: Clean up wm97xx_battery warnings Mark Brown
2010-01-29 10:11 ` Marek Vasut
2010-01-29 14:04 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox