ASoC: Constify i2c_device_id table
authorAxel Lin <axel.lin@gmail.com>
Fri, 4 Mar 2011 07:22:03 +0000 (15:22 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 7 Mar 2011 11:46:01 +0000 (11:46 +0000)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Alexander Sverdlin <subaparts@yandex.ru>
Acked-by: Timur Tabi <timur@freescale.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/cs4270.c
sound/soc/codecs/cs4271.c

index 65f578ff611ef50deb5c40a5dc66c316ebed4cfb..0206a17d72834aca9b91b5f45107f4ebcffcf21c 100644 (file)
@@ -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},
        {}
 };
index 1791796216c80a3116a9e53be7b7f227400f35c1..41a3ee6f61447bafbc03396fea8f2c927c825a55 100644 (file)
@@ -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},
        {}
 };