From: Lee Jones Date: Mon, 21 Jul 2014 13:05:24 +0000 (+0100) Subject: mfd: twl4030-irq: Fix style warnings relating to pr_warn() and sizeof() X-Git-Tag: cleanup-for-v3.18~88^2~24 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04aa4438c01938df30ffe26f72cef0cbd0a34f6e;p=pandora-kernel.git 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 --- Reading git-diff-tree failed