]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Drop empty i2c remove callbacks
authorUwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Wed, 13 May 2026 17:23:03 +0000 (19:23 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2026 11:30:07 +0000 (12:30 +0100)
A remove callback that does nothing has the same semantic (apart from a
debug output) as no such callback at all as i2c_device_remove() just does:

        if (driver->remove) {
                dev_dbg(dev, "remove\n");

                driver->remove(client);
        }

Remove these useless callbacks.

While touching the driver structs, unify indention.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Link: https://patch.msgid.link/3afd8230634dd68ac7c1885ee2b01da377349f89.1778692164.git.u.kleine-koenig@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/nau8825.c
sound/soc/codecs/rt5616.c
sound/soc/codecs/rt5631.c
sound/soc/codecs/sta350.c
sound/soc/codecs/tas5086.c
sound/soc/codecs/wm8900.c
sound/soc/codecs/wm9081.c

index dd3528537ae42acc862ffed992e58e67201249fc..c6df21b91e3693b7e8befeb43ba4aec04bc427e3 100644 (file)
@@ -2930,9 +2930,6 @@ static int nau8825_i2c_probe(struct i2c_client *i2c)
                &nau8825_dai, 1);
 }
 
-static void nau8825_i2c_remove(struct i2c_client *client)
-{}
-
 static const struct i2c_device_id nau8825_i2c_ids[] = {
        { "nau8825" },
        { }
@@ -2962,7 +2959,6 @@ static struct i2c_driver nau8825_driver = {
                .acpi_match_table = ACPI_PTR(nau8825_acpi_match),
        },
        .probe = nau8825_i2c_probe,
-       .remove = nau8825_i2c_remove,
        .id_table = nau8825_i2c_ids,
 };
 module_i2c_driver(nau8825_driver);
index fb9cf127e3ff2114c28505e9d2cf614ee6c6fd97..005a2ffe90aec417b8bd1913aeb6389605697d85 100644 (file)
@@ -1386,9 +1386,6 @@ static int rt5616_i2c_probe(struct i2c_client *i2c)
                                      rt5616_dai, ARRAY_SIZE(rt5616_dai));
 }
 
-static void rt5616_i2c_remove(struct i2c_client *i2c)
-{}
-
 static void rt5616_i2c_shutdown(struct i2c_client *client)
 {
        struct rt5616_priv *rt5616 = i2c_get_clientdata(client);
@@ -1403,7 +1400,6 @@ static struct i2c_driver rt5616_i2c_driver = {
                .of_match_table = of_match_ptr(rt5616_of_match),
        },
        .probe = rt5616_i2c_probe,
-       .remove = rt5616_i2c_remove,
        .shutdown = rt5616_i2c_shutdown,
        .id_table = rt5616_i2c_id,
 };
index 19c6d8f760d9eb5d811e471c329d71a220a553fa..2c404a50b120a3110520f5650f5c1c3d4b98f22c 100644 (file)
@@ -1722,16 +1722,12 @@ static int rt5631_i2c_probe(struct i2c_client *i2c)
        return ret;
 }
 
-static void rt5631_i2c_remove(struct i2c_client *client)
-{}
-
 static struct i2c_driver rt5631_i2c_driver = {
        .driver = {
                .name = "rt5631",
                .of_match_table = of_match_ptr(rt5631_i2c_dt_ids),
        },
-       .probe    = rt5631_i2c_probe,
-       .remove   = rt5631_i2c_remove,
+       .probe = rt5631_i2c_probe,
        .id_table = rt5631_i2c_id,
 };
 
index 71af82b099c0160cab08c3b57f42265f02c0af5b..0d36cb06dcedef9290835e1a89e354ebd61f736a 100644 (file)
@@ -1236,9 +1236,6 @@ static int sta350_i2c_probe(struct i2c_client *i2c)
        return ret;
 }
 
-static void sta350_i2c_remove(struct i2c_client *client)
-{}
-
 static const struct i2c_device_id sta350_i2c_id[] = {
        { "sta350" },
        { }
@@ -1250,8 +1247,7 @@ static struct i2c_driver sta350_i2c_driver = {
                .name = "sta350",
                .of_match_table = of_match_ptr(st350_dt_ids),
        },
-       .probe =    sta350_i2c_probe,
-       .remove =   sta350_i2c_remove,
+       .probe = sta350_i2c_probe,
        .id_table = sta350_i2c_id,
 };
 
index 12bf6a89dbd869db80e7285a348fb74f34fec5e9..36596b00ca69359063b177abe7b55f4e0f41dec2 100644 (file)
@@ -975,17 +975,13 @@ static int tas5086_i2c_probe(struct i2c_client *i2c)
        return ret;
 }
 
-static void tas5086_i2c_remove(struct i2c_client *i2c)
-{}
-
 static struct i2c_driver tas5086_i2c_driver = {
        .driver = {
-               .name   = "tas5086",
+               .name = "tas5086",
                .of_match_table = of_match_ptr(tas5086_dt_ids),
        },
-       .id_table       = tas5086_i2c_id,
-       .probe          = tas5086_i2c_probe,
-       .remove         = tas5086_i2c_remove,
+       .id_table = tas5086_i2c_id,
+       .probe = tas5086_i2c_probe,
 };
 
 module_i2c_driver(tas5086_i2c_driver);
index fea629541acda5ae274cf2fe299637b70c00d53e..5312eb70dd29bcca72976091884f3872f7e212d2 100644 (file)
@@ -1286,9 +1286,6 @@ static int wm8900_i2c_probe(struct i2c_client *i2c)
        return ret;
 }
 
-static void wm8900_i2c_remove(struct i2c_client *client)
-{}
-
 static const struct i2c_device_id wm8900_i2c_id[] = {
        { "wm8900" },
        { }
@@ -1299,8 +1296,7 @@ static struct i2c_driver wm8900_i2c_driver = {
        .driver = {
                .name = "wm8900",
        },
-       .probe =    wm8900_i2c_probe,
-       .remove =   wm8900_i2c_remove,
+       .probe = wm8900_i2c_probe,
        .id_table = wm8900_i2c_id,
 };
 #endif
index 5bfe43c6c1f4097d0354c2a12e03b676a28ee524..521c55280f078ef9fe185df487a7e7ad9be76e77 100644 (file)
@@ -1357,9 +1357,6 @@ static int wm9081_i2c_probe(struct i2c_client *i2c)
        return 0;
 }
 
-static void wm9081_i2c_remove(struct i2c_client *client)
-{}
-
 static const struct i2c_device_id wm9081_i2c_id[] = {
        { "wm9081" },
        { }
@@ -1370,8 +1367,7 @@ static struct i2c_driver wm9081_i2c_driver = {
        .driver = {
                .name = "wm9081",
        },
-       .probe =    wm9081_i2c_probe,
-       .remove =   wm9081_i2c_remove,
+       .probe = wm9081_i2c_probe,
        .id_table = wm9081_i2c_id,
 };