]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rtc: pcf8523: remove useless define
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 18 Apr 2021 00:20:21 +0000 (02:20 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 29 Apr 2021 21:04:47 +0000 (23:04 +0200)
Drop DRIVER_NAME as it is only used once

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210418002023.1000265-1-alexandre.belloni@bootlin.com
drivers/rtc/rtc-pcf8523.c

index 5e1e7b2a8c9a18608aa6f81659d7a804f630a4f7..fe3ab41d8326cdf9984de249283ac10e8ae3db50 100644 (file)
@@ -9,8 +9,6 @@
 #include <linux/rtc.h>
 #include <linux/of.h>
 
-#define DRIVER_NAME "rtc-pcf8523"
-
 #define REG_CONTROL1 0x00
 #define REG_CONTROL1_CAP_SEL BIT(7)
 #define REG_CONTROL1_STOP    BIT(5)
@@ -373,7 +371,7 @@ MODULE_DEVICE_TABLE(of, pcf8523_of_match);
 
 static struct i2c_driver pcf8523_driver = {
        .driver = {
-               .name = DRIVER_NAME,
+               .name = "rtc-pcf8523",
                .of_match_table = of_match_ptr(pcf8523_of_match),
        },
        .probe = pcf8523_probe,