[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0ACAE736BB7A70499F1D8D5E6AC1854C01BDDAEA64@NB-EX-MBX01.diasemi.com>
Date: Tue, 24 Feb 2015 00:55:27 +0000
From: "Opensource [James Seong-Won Ban]" <James.Ban.opensource@...semi.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>,
Support Opensource <Support.Opensource@...semi.com>,
Liam Girdwood <lgirdwood@...il.com>,
"Mark Brown" <broonie@...nel.org>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] regulator: da9211: Pass NULL data with OVER_CURRENT
event
On February 24, 2015 1:12, Geert Uytterhoeven wrote:
> According to the documentation, no data is passed with the OVER_CURRENT
> regulator notifier event.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@...der.be>
> ---
> drivers/regulator/da9211-regulator.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/regulator/da9211-regulator.c b/drivers/regulator/da9211-
> regulator.c
> index 3eda2dd577137f2a..df79e4b1946e7d6e 100644
> --- a/drivers/regulator/da9211-regulator.c
> +++ b/drivers/regulator/da9211-regulator.c
> @@ -305,8 +305,7 @@ static irqreturn_t da9211_irq_handler(int irq, void *data)
>
> if (reg_val & DA9211_E_OV_CURR_A) {
> regulator_notifier_call_chain(chip->rdev[0],
> - REGULATOR_EVENT_OVER_CURRENT,
> - rdev_get_drvdata(chip->rdev[0]));
> + REGULATOR_EVENT_OVER_CURRENT, NULL);
>
> err = regmap_write(chip->regmap, DA9211_REG_EVENT_B,
> DA9211_E_OV_CURR_A);
> @@ -318,8 +317,7 @@ static irqreturn_t da9211_irq_handler(int irq, void *data)
>
> if (reg_val & DA9211_E_OV_CURR_B) {
> regulator_notifier_call_chain(chip->rdev[1],
> - REGULATOR_EVENT_OVER_CURRENT,
> - rdev_get_drvdata(chip->rdev[1]));
> + REGULATOR_EVENT_OVER_CURRENT, NULL);
>
> err = regmap_write(chip->regmap, DA9211_REG_EVENT_B,
> DA9211_E_OV_CURR_B);
> --
> 1.9.1
Acked-by: James Ban <james.ban.opensource@...semi.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists