Commit 893d1a9c authored by Curtis Malainey's avatar Curtis Malainey Committed by Mark Brown

ASoC: rt5677: Add component driver name

Add name to component driver so it is possible to lookup the component
when needed.
Signed-off-by: default avatarCurtis Malainey <cujomalainey@chromium.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 753c36a4
...@@ -4650,7 +4650,7 @@ static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset) ...@@ -4650,7 +4650,7 @@ static int rt5677_to_irq(struct gpio_chip *chip, unsigned offset)
} }
static const struct gpio_chip rt5677_template_chip = { static const struct gpio_chip rt5677_template_chip = {
.label = "rt5677", .label = RT5677_DRV_NAME,
.owner = THIS_MODULE, .owner = THIS_MODULE,
.direction_output = rt5677_gpio_direction_out, .direction_output = rt5677_gpio_direction_out,
.set = rt5677_gpio_set, .set = rt5677_gpio_set,
...@@ -4958,6 +4958,7 @@ static struct snd_soc_dai_driver rt5677_dai[] = { ...@@ -4958,6 +4958,7 @@ static struct snd_soc_dai_driver rt5677_dai[] = {
}; };
static const struct snd_soc_component_driver soc_component_dev_rt5677 = { static const struct snd_soc_component_driver soc_component_dev_rt5677 = {
.name = RT5677_DRV_NAME,
.probe = rt5677_probe, .probe = rt5677_probe,
.remove = rt5677_remove, .remove = rt5677_remove,
.suspend = rt5677_suspend, .suspend = rt5677_suspend,
...@@ -5079,7 +5080,7 @@ static struct regmap_irq rt5677_irqs[] = { ...@@ -5079,7 +5080,7 @@ static struct regmap_irq rt5677_irqs[] = {
}; };
static struct regmap_irq_chip rt5677_irq_chip = { static struct regmap_irq_chip rt5677_irq_chip = {
.name = "rt5677", .name = RT5677_DRV_NAME,
.irqs = rt5677_irqs, .irqs = rt5677_irqs,
.num_irqs = ARRAY_SIZE(rt5677_irqs), .num_irqs = ARRAY_SIZE(rt5677_irqs),
...@@ -5267,7 +5268,7 @@ static int rt5677_i2c_remove(struct i2c_client *i2c) ...@@ -5267,7 +5268,7 @@ static int rt5677_i2c_remove(struct i2c_client *i2c)
static struct i2c_driver rt5677_i2c_driver = { static struct i2c_driver rt5677_i2c_driver = {
.driver = { .driver = {
.name = "rt5677", .name = RT5677_DRV_NAME,
.of_match_table = rt5677_of_match, .of_match_table = rt5677_of_match,
.acpi_match_table = ACPI_PTR(rt5677_acpi_match), .acpi_match_table = ACPI_PTR(rt5677_acpi_match),
}, },
......
...@@ -1674,6 +1674,8 @@ ...@@ -1674,6 +1674,8 @@
#define RT5677_FIRMWARE1 "rt5677_dsp_fw1.bin" #define RT5677_FIRMWARE1 "rt5677_dsp_fw1.bin"
#define RT5677_FIRMWARE2 "rt5677_dsp_fw2.bin" #define RT5677_FIRMWARE2 "rt5677_dsp_fw2.bin"
#define RT5677_DRV_NAME "rt5677"
/* System Clock Source */ /* System Clock Source */
enum { enum {
RT5677_SCLK_S_MCLK, RT5677_SCLK_S_MCLK,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment