]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: simple-amplifier: Remove DRV_NAME defined value
authorHerve Codina <herve.codina@bootlin.com>
Wed, 13 May 2026 08:16:47 +0000 (10:16 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 18 May 2026 16:44:03 +0000 (17:44 +0100)
DRV_NAME is defined and used only in the simple-amplifier driver
declaration.

Remove the useless defined and use directly the value in the driver
declaration itself.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20260513081702.317117-4-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/simple-amplifier.c

index d306c585b52b0900eadeaed99f8299ed8803b9c9..41485445727dde42751fe9f2997c1b641b8e12c6 100644 (file)
@@ -9,8 +9,6 @@
 #include <linux/regulator/consumer.h>
 #include <sound/soc.h>
 
-#define DRV_NAME "simple-amplifier"
-
 struct simple_amp {
        struct gpio_desc *gpiod_enable;
 };
@@ -97,7 +95,7 @@ MODULE_DEVICE_TABLE(of, simple_amp_ids);
 
 static struct platform_driver simple_amp_driver = {
        .driver = {
-               .name = DRV_NAME,
+               .name = "simple-amplifier",
                .of_match_table = of_match_ptr(simple_amp_ids),
        },
        .probe = simple_amp_probe,