mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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:
parent
04a1fe8e65
commit
28188a6d88
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user