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 <herve.codina@bootlin.com>
Link: https://patch.msgid.link/20260513081702.317117-4-herve.codina@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Herve Codina 2026-05-13 10:16:47 +02:00 committed by Mark Brown
parent 04a1fe8e65
commit 28188a6d88
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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,