ASoC: tlv320dac33: add MODULE_DEVICE_TABLE
PATCH 1/2 ASoC: tlv320dac33: add MODULE_DEVICE_TABLE
The device table is required to load modules based on modaliases.
Signed-off-by Axel Lin <[email protected]>
--- sound/soc/codecs/tlv320dac33.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
sound/soc/codecs/tlv320dac33.c +1 -0
@@ -1615,6 +1615,7 @@ static const struct i2c_device_id tlv320dac33_i2c_id[] = { }, { }, }; +MODULE_DEVICE_TABLE (i2c, tlv320dac33_i2c_id);static struct i2c_driver tlv320dac33_i2c_driver = { .driver = {
Signature · 1 line
1.7.2
PATCH 2/2 ASoC: Constify i2c_device_id table
Signed-off-by Axel Lin <[email protected]>
Cc Alexander Sverdlin <[email protected]>
Cc Timur Tabi <[email protected]>
--- sound/soc/codecs/cs4270.c | 2 +- sound/soc/codecs/cs4271.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/codecs/cs4270.c +1 -1
@@ -719,7 +719,7 @@ static int cs4270_i2c_remove(struct i2c_client *i2c_client)/* * cs4270_id - I2C device IDs supported by this driver */ -static struct i2c_device_id cs4270_id[] = { +static const struct i2c_device_id cs4270_id[] = { {"cs4270" ,0 }, {} };
sound/soc/codecs/cs4271.c +1 -1
@@ -555,7 +555,7 @@ static struct spi_driver cs4271_spi_driver = {#endif /* defined(CONFIG_SPI_MASTER) */ #if defined(CONFIG_I2C ) || defined(CONFIG_I2C_MODULE ) -static struct i2c_device_id cs4271_i2c_id[] = { +static const struct i2c_device_id cs4271_i2c_id[] = { {"cs4271" ,0 }, {} };
Signature · 1 line
1.7.2
Re: [PATCH 2/2] ASoC: Constify i2c_device_id table
Quoted 8 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>Cc Alexander Sverdlin <[email protected]>Cc Timur Tabi <[email protected]>--- sound/soc/codecs/cs4270.c | 2 +- sound/soc/codecs/cs4271.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Liam Girdwood
Acked-byRe: [alsa-devel] [PATCH 2/2] ASoC: Constify i2c_device_id table
Quoted 10 lines · Alexander Sverdlin
Quoted 8 lines · Axel Lin
Signed-off-by Axel Lin <[email protected]>Cc Alexander Sverdlin <[email protected]>Cc Timur Tabi <[email protected]>--- sound/soc/codecs/cs4270.c | 2 +- sound/soc/codecs/cs4271.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Quoted 2 lines
Acked-by Liam Girdwood <[email protected]>
Re: [PATCH 2/2] ASoC: Constify i2c_device_id table
In reply to Axel LinQuoted 4 lines · Axel Lin
Signed-off-by Axel Lin<[email protected]>Cc Alexander Sverdlin<[email protected]>Cc Timur Tabi<[email protected]>---
Acked-by Timur Tabi <[email protected]>
Signature · 2 lines
Timur Tabi Linux kernel developer
Quoted 3 lines · ext Axel Lin
The device table is required to load modules based on modaliases.
Signed-off-by Axel Lin <[email protected]>
Acked-by Peter Ujfalusi <[email protected]>
Liam Girdwood
Acked-byQuoted 6 lines · Peter Ujfalusi
Quoted 3 lines · ext Axel Lin
The device table is required to load modules based on modaliases.
Signed-off-by Axel Lin <[email protected]>Acked-by Peter Ujfalusi <[email protected]>
Acked-by Liam Girdwood <[email protected]>
Mark Brown
AppliedQuoted 3 lines · Axel Lin
The device table is required to load modules based on modaliases.
Signed-off-by Axel Lin <[email protected]>
Applied both, thanks.