Skip to content

Commit 994a0b2

Browse files
committed
nau8325 build fixes
Merge series from Jaroslav Kysela <perex@perex.cz>: Add missing build configuration and fix the i2c probe function to follow latest i2c core interface. Jaroslav Kysela (2): ASoC: nau8325: use simple i2c probe function ASoC: nau8325: add missing build config sound/soc/codecs/Kconfig | 5 +++++ sound/soc/codecs/Makefile | 2 ++ sound/soc/codecs/nau8325.c | 3 +-- 3 files changed, 8 insertions(+), 2 deletions(-) -- 2.51.1
2 parents 9d3fcd0 + cd41d34 commit 994a0b2

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

sound/soc/codecs/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ config SND_SOC_ALL_CODECS
171171
imply SND_SOC_MT6359
172172
imply SND_SOC_MT6660
173173
imply SND_SOC_NAU8315
174+
imply SND_SOC_NAU8325
174175
imply SND_SOC_NAU8540
175176
imply SND_SOC_NAU8810
176177
imply SND_SOC_NAU8821
@@ -2759,6 +2760,10 @@ config SND_SOC_MT6660
27592760
config SND_SOC_NAU8315
27602761
tristate "Nuvoton Technology Corporation NAU8315 CODEC"
27612762

2763+
config SND_SOC_NAU8325
2764+
tristate "Nuvoton Technology Corporation NAU8325 CODEC"
2765+
depends on I2C
2766+
27622767
config SND_SOC_NAU8540
27632768
tristate "Nuvoton Technology Corporation NAU85L40 CODEC"
27642769
depends on I2C

sound/soc/codecs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ snd-soc-mt6359-y := mt6359.o
193193
snd-soc-mt6359-accdet-y := mt6359-accdet.o
194194
snd-soc-mt6660-y := mt6660.o
195195
snd-soc-nau8315-y := nau8315.o
196+
snd-soc-nau8325-y := nau8325.o
196197
snd-soc-nau8540-y := nau8540.o
197198
snd-soc-nau8810-y := nau8810.o
198199
snd-soc-nau8821-y := nau8821.o
@@ -620,6 +621,7 @@ obj-$(CONFIG_SND_SOC_MT6359) += snd-soc-mt6359.o
620621
obj-$(CONFIG_SND_SOC_MT6359_ACCDET) += mt6359-accdet.o
621622
obj-$(CONFIG_SND_SOC_MT6660) += snd-soc-mt6660.o
622623
obj-$(CONFIG_SND_SOC_NAU8315) += snd-soc-nau8315.o
624+
obj-$(CONFIG_SND_SOC_NAU8325) += snd-soc-nau8325.o
623625
obj-$(CONFIG_SND_SOC_NAU8540) += snd-soc-nau8540.o
624626
obj-$(CONFIG_SND_SOC_NAU8810) += snd-soc-nau8810.o
625627
obj-$(CONFIG_SND_SOC_NAU8821) += snd-soc-nau8821.o

sound/soc/codecs/nau8325.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -829,8 +829,7 @@ static int nau8325_read_device_properties(struct device *dev,
829829
return 0;
830830
}
831831

832-
static int nau8325_i2c_probe(struct i2c_client *i2c,
833-
const struct i2c_device_id *id)
832+
static int nau8325_i2c_probe(struct i2c_client *i2c)
834833
{
835834
struct device *dev = &i2c->dev;
836835
struct nau8325 *nau8325 = dev_get_platdata(dev);

0 commit comments

Comments
 (0)