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:
5996542
)
hwmon: (ad7418) fix checkpatch issues
author
Frans Meulenbroeks
<fransmeulenbroeks@gmail.com>
Sun, 8 Jan 2012 18:34:17 +0000
(19:34 +0100)
committer
Guenter Roeck
<guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:26:34 +0000
(18:26 -0700)
fixed:
WARNING: simple_strtol is obsolete, use kstrtol instead
+ long temp = simple_strtol(buf, NULL, 10);
ERROR: do not use assignment in if condition
+ if (!(data = kzalloc(sizeof(struct ad7418_data), GFP_KERNEL))) {
ERROR: do not use assignment in if condition
+ if ((err = sysfs_create_group(&client->dev.kobj, &data->attrs)))
Signed-off-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/ad7418.c
patch
|
blob
|
history
diff --cc
drivers/hwmon/ad7418.c
Simple merge