]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc-ab8500-add-calibration-attribute-to-ab8500-rtc-v3-checkpatch-fixes
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 8 Dec 2011 04:42:32 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:57:54 +0000 (15:57 +1100)
Cc: Alessandro Zummo <a.zummo@towertech.it>
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 <linus.walleij@stericsson.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-ab8500.c

index 2bd391b2f44c82f2839a433de2abce527a8573e2..df7bfc304c5e8bbf3191efdaace13bcf2cf79e3a 100644 (file)
@@ -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);