aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-12-14 15:17:29 -0500
committerJean Delvare <khali@linux-fr.org>2009-12-14 15:17:29 -0500
commit7f508118b1c1f9856a1c899a2bd4867a962b0225 (patch)
tree0282eb52ee69bf50ee90720904674b27dac4dfd0 /include/linux/i2c.h
parente5e9f44c246fbafe723e579e9fe887677beb40e4 (diff)
i2c: Get rid of I2C_CLIENT_MODULE_PARM
There is no user left of I2C_CLIENT_MODULE_PARM, so we can finally get rid of this ugly macro. Signed-off-by: Jean Delvare <khali@linux-fr.org> Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r--include/linux/i2c.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index cc6e1508ae90..02fc617782ef 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -568,39 +568,4 @@ union i2c_smbus_data {
568#define I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */ 568#define I2C_SMBUS_BLOCK_PROC_CALL 7 /* SMBus 2.0 */
569#define I2C_SMBUS_I2C_BLOCK_DATA 8 569#define I2C_SMBUS_I2C_BLOCK_DATA 8
570 570
571
572#ifdef __KERNEL__
573
574/* These defines are used for probing i2c client addresses */
575/* The length of the option lists */
576#define I2C_CLIENT_MAX_OPTS 48
577
578/* Default fill of many variables */
579#define I2C_CLIENT_DEFAULTS {I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
580 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
581 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
582 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
583 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
584 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
585 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
586 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
587 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
588 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
589 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
590 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
591 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
592 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
593 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END, \
594 I2C_CLIENT_END, I2C_CLIENT_END, I2C_CLIENT_END}
595
596/* I2C_CLIENT_MODULE_PARM creates a module parameter, and puts it in the
597 module header */
598
599#define I2C_CLIENT_MODULE_PARM(var,desc) \
600 static unsigned short var[I2C_CLIENT_MAX_OPTS] = I2C_CLIENT_DEFAULTS; \
601 static unsigned int var##_num; \
602 module_param_array(var, short, &var##_num, 0); \
603 MODULE_PARM_DESC(var, desc)
604
605#endif /* __KERNEL__ */
606#endif /* _LINUX_I2C_H */ 571#endif /* _LINUX_I2C_H */