From: Herve Codina Date: Wed, 13 May 2026 08:16:47 +0000 (+0200) Subject: ASoC: simple-amplifier: Remove DRV_NAME defined value X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28188a6d8869d2350f9e271e1b25e85077c70cee;p=thirdparty%2Fkernel%2Flinux.git ASoC: simple-amplifier: Remove DRV_NAME defined value 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 Link: https://patch.msgid.link/20260513081702.317117-4-herve.codina@bootlin.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c index d306c585b52b0..41485445727dd 100644 --- a/sound/soc/codecs/simple-amplifier.c +++ b/sound/soc/codecs/simple-amplifier.c @@ -9,8 +9,6 @@ #include #include -#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,