OSDN Git Service

mfd: twl4030-irq: Fix style warnings relating to pr_warn() and sizeof()
authorLee Jones <lee.jones@linaro.org>
Mon, 21 Jul 2014 13:05:24 +0000 (14:05 +0100)
committerLee Jones <lee.jones@linaro.org>
Fri, 25 Jul 2014 14:31:40 +0000 (15:31 +0100)
commit04aa4438c01938df30ffe26f72cef0cbd0a34f6e
tree0f1d2c580eb000c8dab5098aa69396d26874d3be
parent52149ad265be7694f8afa21fb9af8a5fbf01b1a5
mfd: twl4030-irq: Fix style warnings relating to pr_warn() and sizeof()

This is part of an effort to clean-up the MFD subsystem.

WARNING: Prefer pr_warn(... to pr_warning(...
+               pr_warning("twl4030: I2C error %d reading PIH ISR\n", ret);

WARNING: sizeof buf should be sizeof(buf)
+       memset(buf, 0xff, sizeof buf);

WARNING: sizeof *agent should be sizeof(*agent)
+       agent = kzalloc(sizeof *agent, GFP_KERNEL);

Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl4030-irq.c