summaryrefslogtreecommitdiff
path: root/include/linux/device-id/i2c.h
blob: 21f9b581e7a98b6b745cb257fa2f94f5ce497abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_DEVICE_ID_I2C_H
#define LINUX_DEVICE_ID_I2C_H

#ifdef __KERNEL__
typedef unsigned long kernel_ulong_t;
#endif

/* i2c */

#define I2C_NAME_SIZE	20
#define I2C_MODULE_PREFIX "i2c:"

struct i2c_device_id {
	char name[I2C_NAME_SIZE];
	kernel_ulong_t driver_data;	/* Data private to the driver */
};

#endif /* ifndef LINUX_DEVICE_ID_I2C_H */