Commit 4ed3f1b8 authored by Alexandre Belloni's avatar Alexandre Belloni

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 <kumba@gentoo.org>
Link: https://lore.kernel.org/r/20191122102212.400158-5-alexandre.belloni@bootlin.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 47401580
...@@ -1039,7 +1039,7 @@ ds1685_rtc_sysfs_serial_show(struct device *dev, ...@@ -1039,7 +1039,7 @@ ds1685_rtc_sysfs_serial_show(struct device *dev,
} }
static DEVICE_ATTR(serial, S_IRUGO, ds1685_rtc_sysfs_serial_show, NULL); static DEVICE_ATTR(serial, S_IRUGO, ds1685_rtc_sysfs_serial_show, NULL);
/** /*
* struct ds1685_rtc_sysfs_misc_attrs - list for misc RTC features. * struct ds1685_rtc_sysfs_misc_attrs - list for misc RTC features.
*/ */
static struct attribute* static struct attribute*
...@@ -1050,7 +1050,7 @@ ds1685_rtc_sysfs_misc_attrs[] = { ...@@ -1050,7 +1050,7 @@ ds1685_rtc_sysfs_misc_attrs[] = {
NULL, NULL,
}; };
/** /*
* struct ds1685_rtc_sysfs_misc_grp - attr group for misc RTC features. * struct ds1685_rtc_sysfs_misc_grp - attr group for misc RTC features.
*/ */
static const struct attribute_group static const struct attribute_group
...@@ -1355,7 +1355,7 @@ ds1685_rtc_remove(struct platform_device *pdev) ...@@ -1355,7 +1355,7 @@ ds1685_rtc_remove(struct platform_device *pdev)
return 0; return 0;
} }
/** /*
* ds1685_rtc_driver - rtc driver properties. * ds1685_rtc_driver - rtc driver properties.
*/ */
static struct platform_driver ds1685_rtc_driver = { static struct platform_driver ds1685_rtc_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment