[PATCH v2 03/17] ASoC: simple-amplifier: Remove DRV_NAME defined value

Herve Codina
2026-04-29T07:44:18Z

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>
---
sound/soc/codecs/simple-amplifier.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/simple-amplifier.c b/sound/soc/codecs/simple-amplifier.c
index d306c585b52b..41485445727d 100644
--- a/sound/soc/codecs/simple-amplifier.c
+++ b/sound/soc/codecs/simple-amplifier.c
@@ -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,
--
2.53.0