From: Andrew Morton Date: Thu, 8 Dec 2011 04:42:32 +0000 (+1100) Subject: rtc-ab8500-add-calibration-attribute-to-ab8500-rtc-v3-checkpatch-fixes X-Git-Tag: next-20111214~2^2~68 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4424e5e4e40906f78f1431f33f1fbc119924d238;p=karo-tx-linux.git rtc-ab8500-add-calibration-attribute-to-ab8500-rtc-v3-checkpatch-fixes Cc: Alessandro Zummo ERROR: need consistent spacing around '-' (ctx:WxV) #42: FILE: drivers/rtc/rtc-ab8500.c:287: + rtccal = ~(calibration -1) | 0x80; ^ total: 1 errors, 0 warnings, 21 lines checked ./patches/rtc-ab8500-add-calibration-attribute-to-ab8500-rtc-v3.patch has style problems, please review. If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS. Please run checkpatch prior to sending patches Cc: Linus Walleij Signed-off-by: Andrew Morton --- diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 2bd391b2f44c..df7bfc304c5e 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -284,7 +284,7 @@ static int ab8500_rtc_set_calibration(struct device *dev, int calibration) if (calibration >= 0) rtccal = 0x7F & calibration; else - rtccal = ~(calibration -1) | 0x80; + rtccal = ~(calibration - 1) | 0x80; retval = abx500_set_register_interruptible(dev, AB8500_RTC, AB8500_RTC_CALIB_REG, rtccal);