diff options
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 35 |
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 */ |