Skip to contentSkip to conversation

hwmon: Fix checkpatch issues

PATCH In review Guenter Roeck 1 participant 1 message Jan 16, 2012

lore
Share & tools
lore
#0 lore raw

cover hwmon: Fix checkpatch issues

This patch series is the result of playing with coccinelle. It is based on a series of coccinelle script runs written to fix the following checkpatch issues.

WARNING: simple_strtol is obsolete, use kstrtol instead
WARNING: simple_strtoul is obsolete, use kstrtoul instead
ERROR: do not use assignment in if condition

The files in drivers/hwmon were processed with coccinelle to fix above issues. Subsequently, all files touched by coccinelle were edited manually to fix any remaining checkpatch warnings and errors.

The changelog for each patch describes which checkpatch issues were fixed, and lists any remaining checkpatch issues as well as (in most cases) the reasons why those were not fixed.

The series applies to the tip of Linus's tree. Some of the changes overlap with the pending checkpatch cleanup fixes, but "git am -3" on top of those should work.

Since the patch series is quite large, I am sure I got something wrong, even though I reviewed the changes several times. So the plan is to put the series into my hwmon-next branch immediately after -rc1 is released, and only submit patches upstream after I get a Reviewed-by: or Acked-by: feedback. Any leftover patches will end up in 3.4. Some of the patches may also end up in Jean's tree if that is more convenient.

Note that two of the patches generate false checkpatch errors/warnings in comments.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors