Skip to content

Commit 4ed3f1b

Browse files
rtc: ds1685: fix build error with make W=1
Fix the following parsing errors when building with W=1: drivers/rtc/rtc-ds1685.c:1053: error: Cannot parse struct or union! drivers/rtc/rtc-ds1685.c:1062: error: Cannot parse struct or union! drivers/rtc/rtc-ds1685.c:1363: warning: cannot understand function prototype: 'struct platform_driver ds1685_rtc_driver = ' Cc: Joshua Kinard <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 4740158 commit 4ed3f1b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/rtc/rtc-ds1685.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ ds1685_rtc_sysfs_serial_show(struct device *dev,
10391039
}
10401040
static DEVICE_ATTR(serial, S_IRUGO, ds1685_rtc_sysfs_serial_show, NULL);
10411041

1042-
/**
1042+
/*
10431043
* struct ds1685_rtc_sysfs_misc_attrs - list for misc RTC features.
10441044
*/
10451045
static struct attribute*
@@ -1050,7 +1050,7 @@ ds1685_rtc_sysfs_misc_attrs[] = {
10501050
NULL,
10511051
};
10521052

1053-
/**
1053+
/*
10541054
* struct ds1685_rtc_sysfs_misc_grp - attr group for misc RTC features.
10551055
*/
10561056
static const struct attribute_group
@@ -1355,7 +1355,7 @@ ds1685_rtc_remove(struct platform_device *pdev)
13551355
return 0;
13561356
}
13571357

1358-
/**
1358+
/*
13591359
* ds1685_rtc_driver - rtc driver properties.
13601360
*/
13611361
static struct platform_driver ds1685_rtc_driver = {

0 commit comments

Comments
 (0)