summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/menelaus.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-02 15:01:01 +0900
committerLee Jones <lee.jones@linaro.org>2013-08-07 09:47:33 +0100
commit59a9f7a32adf6537b4e4db8ca204eeb77d7a634e (patch)
tree9f12493000f24473c253e76f5b43afda056dec49 /drivers/mfd/menelaus.c
parentfae01582ce9e01283514e00073868635865b8fb4 (diff)
downloadop-kernel-dev-59a9f7a32adf6537b4e4db8ca204eeb77d7a634e.zip
op-kernel-dev-59a9f7a32adf6537b4e4db8ca204eeb77d7a634e.tar.gz
mfd: menelaus: Use NULL instead of 0
'mmc_callback_data' and 'vtg' are pointers. Fix the following sparse warning: drivers/mfd/menelaus.c:445:43: warning: Using plain integer as NULL pointer drivers/mfd/menelaus.c:469:20: warning: Using plain integer as NULL pointer Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/menelaus.c')
-rw-r--r--drivers/mfd/menelaus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/menelaus.c b/drivers/mfd/menelaus.c
index 9b72a44..f24df8c 100644
--- a/drivers/mfd/menelaus.c
+++ b/drivers/mfd/menelaus.c
@@ -442,7 +442,7 @@ void menelaus_unregister_mmc_callback(void)
menelaus_remove_irq_work(MENELAUS_MMC_S2D1_IRQ);
the_menelaus->mmc_callback = NULL;
- the_menelaus->mmc_callback_data = 0;
+ the_menelaus->mmc_callback_data = NULL;
}
EXPORT_SYMBOL(menelaus_unregister_mmc_callback);
@@ -466,7 +466,7 @@ static int menelaus_set_voltage(const struct menelaus_vtg *vtg, int mV,
struct i2c_client *c = the_menelaus->client;
mutex_lock(&the_menelaus->lock);
- if (vtg == 0)
+ if (!vtg)
goto set_voltage;
ret = menelaus_read_reg(vtg->vtg_reg);
OpenPOWER on IntegriCloud