diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2012-01-08 22:34:17 +0400 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-19 05:26:34 +0400 |
commit | e91aef22cdb9ca12099d6d21f88de5036fe26fb5 (patch) | |
tree | b886cbb67674e1158905818524dcd07ed70852fb /drivers/dio | |
parent | 599654255d4a933e71641b5e3cb8ceb753830c5f (diff) | |
download | linux-e91aef22cdb9ca12099d6d21f88de5036fe26fb5.tar.xz |
hwmon: (ad7418) fix checkpatch issues
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>
Diffstat (limited to 'drivers/dio')
0 files changed, 0 insertions, 0 deletions