]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtc: Drop explicit initialization of struct i2c_device_id::driver_data to 0
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 15 May 2024 19:43:37 +0000 (21:43 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 6 Jul 2024 22:40:29 +0000 (00:40 +0200)
These drivers don't use the driver_data member of struct i2c_device_id,
so don't explicitly initialize this member.

This prepares putting driver_data in an anonymous union which requires
either no initialization or named designators. But it's also a nice
cleanup on its own.

While add it, also remove a comma after the sentinel entry in
rtc-hym8563.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20240515194336.58342-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
23 files changed:
drivers/rtc/rtc-ab-b5ze-s3.c
drivers/rtc/rtc-ab-eoz9.c
drivers/rtc/rtc-bq32k.c
drivers/rtc/rtc-ds1374.c
drivers/rtc/rtc-ds1672.c
drivers/rtc/rtc-ds3232.c
drivers/rtc/rtc-em3027.c
drivers/rtc/rtc-fm3130.c
drivers/rtc/rtc-hym8563.c
drivers/rtc/rtc-isl12022.c
drivers/rtc/rtc-max31335.c
drivers/rtc/rtc-max6900.c
drivers/rtc/rtc-nct3018y.c
drivers/rtc/rtc-pcf8523.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-pcf8583.c
drivers/rtc/rtc-rv3029c2.c
drivers/rtc/rtc-rx6110.c
drivers/rtc/rtc-rx8010.c
drivers/rtc/rtc-rx8581.c
drivers/rtc/rtc-s35390a.c
drivers/rtc/rtc-sd3078.c
drivers/rtc/rtc-x1205.c

index 100062001831462a5f6f652414333197042c4fc2..684f9898d76819f7e4789f29c86351c7bb6a7af5 100644 (file)
@@ -933,7 +933,7 @@ MODULE_DEVICE_TABLE(of, abb5zes3_dt_match);
 #endif
 
 static const struct i2c_device_id abb5zes3_id[] = {
-       { "abb5zes3", 0 },
+       { "abb5zes3" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, abb5zes3_id);
index 04e1b8e93bc1cb6d9fde062a1cfe5f979e19048d..02f7d0711287723a480fdf7d079ba2ea5e59ce61 100644 (file)
@@ -575,7 +575,7 @@ MODULE_DEVICE_TABLE(of, abeoz9_dt_match);
 #endif
 
 static const struct i2c_device_id abeoz9_id[] = {
-       { "abeoz9", 0 },
+       { "abeoz9" },
        { }
 };
 
index 591e42391747bacd4e7ac03fabc737c57fd27295..7ad34539be4d2eb5d18abd63ebbfa0cd78705997 100644 (file)
@@ -304,7 +304,7 @@ static void bq32k_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id bq32k_id[] = {
-       { "bq32000", 0 },
+       { "bq32000" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, bq32k_id);
index 4a5005cb23f5930139b91c20b7cb5ca904b01dd5..c2359eb86bc92b841895026712ba8ad093fbecfe 100644 (file)
@@ -52,7 +52,7 @@
 #define DS1374_REG_TCR         0x09 /* Trickle Charge */
 
 static const struct i2c_device_id ds1374_id[] = {
-       { "ds1374", 0 },
+       { "ds1374" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ds1374_id);
index 641799f30baa995278227fe3751f2adc2c106b9a..6e5314215d0059a2c4b980377bbc95c0c4afb38e 100644 (file)
@@ -133,7 +133,7 @@ static int ds1672_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ds1672_id[] = {
-       { "ds1672", 0 },
+       { "ds1672" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ds1672_id);
index 1485a6ae51e613092c4d08fb44f3d6cc7d385816..dd37b055693c0c16d7a02a918ea140884b38808e 100644 (file)
@@ -586,7 +586,7 @@ static int ds3232_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id ds3232_id[] = {
-       { "ds3232", 0 },
+       { "ds3232" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, ds3232_id);
index fc772eae5da5f25a4ea1d0a13f56b787ece594e7..dc1ccbc65dcb31f154914797336532138d813144 100644 (file)
@@ -129,7 +129,7 @@ static int em3027_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id em3027_id[] = {
-       { "em3027", 0 },
+       { "em3027" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, em3027_id);
index 400ce4ad0c49905d003cbad94234be6cc0a1dde3..f82728ebac0c1260a304739655c54d682dcccf43 100644 (file)
@@ -53,7 +53,7 @@ struct fm3130 {
        int                     data_valid;
 };
 static const struct i2c_device_id fm3130_id[] = {
-       { "fm3130", 0 },
+       { "fm3130" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, fm3130_id);
index b018535c842b376adce85d2f584a8c85b0286e5c..63f11ea3589d6439ac0ee7f6ee4ab70e2a52bff4 100644 (file)
@@ -559,8 +559,8 @@ static int hym8563_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id hym8563_id[] = {
-       { "hym8563", 0 },
-       {},
+       { "hym8563" },
+       {}
 };
 MODULE_DEVICE_TABLE(i2c, hym8563_id);
 
index 4eef7afcc8bcce5f207e30eeb4b0b0dc9dd956a8..6fa9a68af9d9804180ac9f821c890f7bc68f1533 100644 (file)
@@ -366,7 +366,7 @@ static const struct of_device_id isl12022_dt_match[] = {
 MODULE_DEVICE_TABLE(of, isl12022_dt_match);
 
 static const struct i2c_device_id isl12022_id[] = {
-       { "isl12022", 0 },
+       { "isl12022" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, isl12022_id);
index a2441e5c2c74d6f452646b68f6df706447bd486d..9a456f537d3b9ee71c098d1f543151e39a03d2a4 100644 (file)
@@ -669,7 +669,7 @@ static int max31335_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max31335_id[] = {
-       { "max31335", 0 },
+       { "max31335" },
        { }
 };
 
index 31b910e4d91a89c530dc8abfaab2b5bf11189949..7be31fce5bc748a70150ce3f97f6947246509fc4 100644 (file)
@@ -215,7 +215,7 @@ static int max6900_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id max6900_id[] = {
-       { "max6900", 0 },
+       { "max6900" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, max6900_id);
index 7a8b4de893b8e574c635292715161e03a9c55abe..76c5f464b2daeb59fa8367bff3ad261ed75dd937 100644 (file)
@@ -567,7 +567,7 @@ static int nct3018y_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id nct3018y_id[] = {
-       { "nct3018y", 0 },
+       { "nct3018y" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, nct3018y_id);
index 98b77f790b0c5a63595caacd6a17ba6ba4e3b222..2c63c0ffd05a1ae792048a3e2664d65b3b0bce6e 100644 (file)
@@ -495,7 +495,7 @@ static int pcf8523_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pcf8523_id[] = {
-       { "pcf8523", 0 },
+       { "pcf8523" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, pcf8523_id);
index 1949d7473310120891e1a306585d21c279fcb987..647d52f1f5c5e8a736efa7275a178d1cb0f4785f 100644 (file)
@@ -594,9 +594,9 @@ static int pcf8563_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pcf8563_id[] = {
-       { "pcf8563", 0 },
-       { "rtc8564", 0 },
-       { "pca8565", 0 },
+       { "pcf8563" },
+       { "rtc8564" },
+       { "pca8565" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, pcf8563_id);
index a7e0fc360b6a10703d8c4c00073df6a794ac61fb..652b9dfa75669630aa3211a5b83b76f90560a886 100644 (file)
@@ -297,7 +297,7 @@ static int pcf8583_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id pcf8583_id[] = {
-       { "pcf8583", 0 },
+       { "pcf8583" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, pcf8583_id);
index 4a81feeb00ffde03de8d37a2544541b4fde97850..83331d1fcab06b3b361b53621d902544da396998 100644 (file)
@@ -807,8 +807,8 @@ static int rv3029_i2c_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id rv3029_id[] = {
-       { "rv3029", 0 },
-       { "rv3029c2", 0 },
+       { "rv3029" },
+       { "rv3029c2" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, rv3029_id);
index af6dd6ccbe3b73360f18c821b1008721c1199700..7c423d672adb3462734ff37e38bf194bfc6538f1 100644 (file)
@@ -451,7 +451,7 @@ static const struct acpi_device_id rx6110_i2c_acpi_match[] = {
 MODULE_DEVICE_TABLE(acpi, rx6110_i2c_acpi_match);
 
 static const struct i2c_device_id rx6110_i2c_id[] = {
-       { "rx6110", 0 },
+       { "rx6110" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, rx6110_i2c_id);
index f44e212c07ded4ff1f8813eab9a7dc207b1df342..2b6198d1cf81eabe8ddb7259cf42e2b7adf8a56c 100644 (file)
@@ -50,7 +50,7 @@
 #define RX8010_ALARM_AE                BIT(7)
 
 static const struct i2c_device_id rx8010_id[] = {
-       { "rx8010", 0 },
+       { "rx8010" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, rx8010_id);
index 48efd61a114d40a59aed15087086ff37c529b225..b18c12887bdc3705ea4cee9b8d75086a05b24e71 100644 (file)
@@ -307,7 +307,7 @@ static int rx8581_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id rx8581_id[] = {
-       { "rx8581", 0 },
+       { "rx8581" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, rx8581_id);
index 90a3028ac57433444ab8d3b091d35c264aceaefa..2d6b655a4b25b1d63aa6335c5ee0488492935154 100644 (file)
@@ -50,7 +50,7 @@
 #define S35390A_INT2_MODE_PMIN         (BIT(3) | BIT(2)) /* INT2FE | INT2ME */
 
 static const struct i2c_device_id s35390a_id[] = {
-       { "s35390a", 0 },
+       { "s35390a" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, s35390a_id);
index 7760394ccd2dfbaac41ac0ccd70180282886bbc2..fe27b54beaad1c06b70bf7f22e44c3f6da087267 100644 (file)
@@ -201,7 +201,7 @@ static int sd3078_probe(struct i2c_client *client)
 }
 
 static const struct i2c_device_id sd3078_id[] = {
-       {"sd3078", 0},
+       { "sd3078" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, sd3078_id);
index 807f953ae0aedc2541bdf58fe0e7bf8eaaa54f5b..4bcd7ca32f27bf20ddb18d25d5a5a4760d549634 100644 (file)
@@ -663,7 +663,7 @@ static void x1205_remove(struct i2c_client *client)
 }
 
 static const struct i2c_device_id x1205_id[] = {
-       { "x1205", 0 },
+       { "x1205" },
        { }
 };
 MODULE_DEVICE_TABLE(i2c, x1205_id);