···267267Fortunately, as a module writer, you just have to define the `normal_i2c' 268268parameter. The complete declaration could look like this:269269270270- /* Scan 0x37, and 0x48 to 0x4f */271271- static unsigned short normal_i2c[] = { 0x37, 0x48, 0x49, 0x4a, 0x4b, 0x4c,272272- 0x4d, 0x4e, 0x4f, I2C_CLIENT_END };270270+ /* Scan 0x4c to 0x4f */271271+ static const unsigned short normal_i2c[] = { 0x4c, 0x4d, 0x4e, 0x4f,272272+ I2C_CLIENT_END };273273274274 /* Magic definition of all other variables and things */275275 I2C_CLIENT_INSMOD;
+1-1
arch/arm/mach-pxa/akita-ioexp.c
···2929#define MAX7310_TIMEOUT 0x0430303131/* Addresses to scan */3232-static unsigned short normal_i2c[] = { 0x18, I2C_CLIENT_END };3232+static const unsigned short normal_i2c[] = { 0x18, I2C_CLIENT_END };33333434/* I2C Magic */3535I2C_CLIENT_INSMOD;
···3434#include <linux/mutex.h>35353636/* Do not scan - the MAX6875 access method will write to some EEPROM chips */3737-static unsigned short normal_i2c[] = {I2C_CLIENT_END};3737+static const unsigned short normal_i2c[] = { I2C_CLIENT_END };38383939/* Insmod parameters */4040I2C_CLIENT_INSMOD_1(max6875);
···2929 * However, the chip cannot be detected without doing an i2c write,3030 * so use the force module parameter.3131 */3232-static unsigned short normal_i2c[] = {I2C_CLIENT_END};3232+static const unsigned short normal_i2c[] = { I2C_CLIENT_END };33333434/**3535 * Insmod parameters
+1-1
sound/soc/codecs/cs4270.c
···234234 * lower three bits are determined via the AD2, AD1, and AD0 pins235235 * (respectively).236236 */237237-static unsigned short normal_i2c[] = {237237+static const unsigned short normal_i2c[] = {238238 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, I2C_CLIENT_END239239};240240I2C_CLIENT_INSMOD;
+1-1
sound/soc/s3c24xx/neo1973_wm8753.c
···573573574574static struct i2c_client client_template;575575576576-static unsigned short normal_i2c[] = { 0x7C, I2C_CLIENT_END };576576+static const unsigned short normal_i2c[] = { 0x7C, I2C_CLIENT_END };577577578578/* Magic definition of all other variables and things */579579I2C_CLIENT_INSMOD;