regulator: wm8350: Pass NULL data with REGULATION_OUT and UNDER_VOLTAGE events
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 23 Feb 2015 16:13:31 +0000 (17:13 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 24 Feb 2015 08:01:34 +0000 (17:01 +0900)
According to the documentation, no data is passed with the
REGULATION_OUT and UNDER_VOLTAGE regulator notifier events.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/wm8350-regulator.c

index 7ec7c390eedaa1085eeb03d4adfce33f7f1b4531..78efead3b39fee1489633cd6a8bd2a21786e812b 100644 (file)
@@ -1157,11 +1157,11 @@ static irqreturn_t pmic_uv_handler(int irq, void *data)
        if (irq == WM8350_IRQ_CS1 || irq == WM8350_IRQ_CS2)
                regulator_notifier_call_chain(rdev,
                                              REGULATOR_EVENT_REGULATION_OUT,
-                                             wm8350);
+                                             NULL);
        else
                regulator_notifier_call_chain(rdev,
                                              REGULATOR_EVENT_UNDER_VOLTAGE,
-                                             wm8350);
+                                             NULL);
        mutex_unlock(&rdev->mutex);
 
        return IRQ_HANDLED;