1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef LINUX_DEVICE_ID_I2C_H 3 #define LINUX_DEVICE_ID_I2C_H 4 5 #ifdef __KERNEL__ 6 typedef unsigned long kernel_ulong_t; 7 #endif 8 9 /* i2c */ 10 11 #define I2C_NAME_SIZE 20 12 #define I2C_MODULE_PREFIX "i2c:" 13 14 struct i2c_device_id { 15 char name[I2C_NAME_SIZE]; 16 kernel_ulong_t driver_data; /* Data private to the driver */ 17 }; 18 19 #endif /* ifndef LINUX_DEVICE_ID_I2C_H */ 20