git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52149ad
)
mfd: twl4030-irq: Fix style warnings relating to pr_warn() and sizeof()
author
Lee Jones
<lee.jones@linaro.org>
Mon, 21 Jul 2014 13:05:24 +0000
(14:05 +0100)
committer
Lee Jones
<lee.jones@linaro.org>
Fri, 25 Jul 2014 14:31:40 +0000
(15:31 +0100)
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
patch
|
blob
|
history
diff --cc
drivers/mfd/twl4030-irq.c
Simple merge