aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index ad1c0fb164bc..9419bc5584ad 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -48,7 +48,6 @@ struct i2c_algorithm;
48struct i2c_adapter; 48struct i2c_adapter;
49struct i2c_client; 49struct i2c_client;
50struct i2c_driver; 50struct i2c_driver;
51struct i2c_client_address_data;
52union i2c_smbus_data; 51union i2c_smbus_data;
53 52
54/* 53/*
@@ -301,7 +300,7 @@ struct i2c_client_address_data {
301 unsigned short *normal_i2c; 300 unsigned short *normal_i2c;
302 unsigned short *probe; 301 unsigned short *probe;
303 unsigned short *ignore; 302 unsigned short *ignore;
304 unsigned short *force; 303 unsigned short **forces;
305}; 304};
306 305
307/* Internal numbers to terminate lists */ 306/* Internal numbers to terminate lists */
@@ -575,11 +574,15 @@ union i2c_smbus_data {
575 I2C_CLIENT_MODULE_PARM(force, \ 574 I2C_CLIENT_MODULE_PARM(force, \
576 "List of adapter,address pairs to boldly assume " \ 575 "List of adapter,address pairs to boldly assume " \
577 "to be present"); \ 576 "to be present"); \
577 static unsigned short *addr_forces[] = { \
578 force, \
579 NULL \
580 }; \
578 static struct i2c_client_address_data addr_data = { \ 581 static struct i2c_client_address_data addr_data = { \
579 .normal_i2c = normal_i2c, \ 582 .normal_i2c = normal_i2c, \
580 .probe = probe, \ 583 .probe = probe, \
581 .ignore = ignore, \ 584 .ignore = ignore, \
582 .force = force, \ 585 .forces = addr_forces, \
583 } 586 }
584 587
585#endif /* _LINUX_I2C_H */ 588#endif /* _LINUX_I2C_H */