提交 79a54ea1 编写于 作者: A Axel Lin 提交者: Mark Brown

ASoC: Constify i2c_device_id table

Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NAlexander Sverdlin <subaparts@yandex.ru>
Acked-by: NTimur Tabi <timur@freescale.com>
Acked-by: NLiam Girdwood <lrg@ti.com>
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
上级 573f26e3
...@@ -719,7 +719,7 @@ static int cs4270_i2c_remove(struct i2c_client *i2c_client) ...@@ -719,7 +719,7 @@ static int cs4270_i2c_remove(struct i2c_client *i2c_client)
/* /*
* cs4270_id - I2C device IDs supported by this driver * 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}, {"cs4270", 0},
{} {}
}; };
......
...@@ -555,7 +555,7 @@ static struct spi_driver cs4271_spi_driver = { ...@@ -555,7 +555,7 @@ static struct spi_driver cs4271_spi_driver = {
#endif /* defined(CONFIG_SPI_MASTER) */ #endif /* defined(CONFIG_SPI_MASTER) */
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE) #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}, {"cs4271", 0},
{} {}
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册