From ab88c092e8bb3f198504871b687433e44d5d680a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 16 Dec 2011 15:50:27 +1100 Subject: [PATCH] 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 --- drivers/rtc/rtc-ab8500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index de28369db992..cf09de562d23 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); -- 2.39.5