[PATCH] powerpc: platforms: chrp: Add require space after that ','

hanyu001 at 208suo.com hanyu001 at 208suo.com
Tue Jul 18 19:28:23 AEST 2023


Fixes checkpatch errors:

./arch/powerpc/platforms/chrp/time.c:109: ERROR: space required after 
that ',' (ctx:VxV)
./arch/powerpc/platforms/chrp/time.c:110: ERROR: space required after 
that ',' (ctx:VxV)
./arch/powerpc/platforms/chrp/time.c:111: ERROR: space required after 
that ',' (ctx:VxV)
./arch/powerpc/platforms/chrp/time.c:112: ERROR: space required after 
that ',' (ctx:VxV)
./arch/powerpc/platforms/chrp/time.c:113: ERROR: space required after 
that ',' (ctx:VxV)
./arch/powerpc/platforms/chrp/time.c:114: ERROR: space required after 
that ',' (ctx:VxV)

Signed-off-by: Yu Han <hanyu001 at 208suo.com>
---
  arch/powerpc/platforms/chrp/time.c | 12 ++++++------
  1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/powerpc/platforms/chrp/time.c 
b/arch/powerpc/platforms/chrp/time.c
index d46417e3d8e0..6bd40be22c33 100644
--- a/arch/powerpc/platforms/chrp/time.c
+++ b/arch/powerpc/platforms/chrp/time.c
@@ -106,12 +106,12 @@ int chrp_set_rtc_time(struct rtc_time *tmarg)
          tm.tm_mday = bin2bcd(tm.tm_mday);
          tm.tm_year = bin2bcd(tm.tm_year);
      }
-    chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS);
-    chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES);
-    chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS);
-    chrp_cmos_clock_write(tm.tm_mon,RTC_MONTH);
-    chrp_cmos_clock_write(tm.tm_mday,RTC_DAY_OF_MONTH);
-    chrp_cmos_clock_write(tm.tm_year,RTC_YEAR);
+    chrp_cmos_clock_write(tm.tm_sec, RTC_SECONDS);
+    chrp_cmos_clock_write(tm.tm_min, RTC_MINUTES);
+    chrp_cmos_clock_write(tm.tm_hour, RTC_HOURS);
+    chrp_cmos_clock_write(tm.tm_mon, RTC_MONTH);
+    chrp_cmos_clock_write(tm.tm_mday, RTC_DAY_OF_MONTH);
+    chrp_cmos_clock_write(tm.tm_year, RTC_YEAR);

      /* The following flags have to be released exactly in this order,
       * otherwise the DS12887 (popular MC146818A clone with integrated


More information about the Linuxppc-dev mailing list