Subversion Repositories Kolibri OS

Rev

Rev 3243 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3243 Rev 4065
Line 53... Line 53...
53
 
53
 
54
/**
54
/**
55
 * struct i2c_driver - represent an I2C device driver
55
 * struct i2c_driver - represent an I2C device driver
56
 * @class: What kind of i2c device we instantiate (for detect)
56
 * @class: What kind of i2c device we instantiate (for detect)
57
 * @attach_adapter: Callback for bus addition (deprecated)
-
 
58
 * @detach_adapter: Callback for bus removal (deprecated)
57
 * @attach_adapter: Callback for bus addition (deprecated)
59
 * @probe: Callback for device binding
58
 * @probe: Callback for device binding
60
 * @remove: Callback for device unbinding
59
 * @remove: Callback for device unbinding
61
 * @shutdown: Callback for device shutdown
60
 * @shutdown: Callback for device shutdown
62
 * @suspend: Callback for device suspend
61
 * @suspend: Callback for device suspend
Line 90... Line 89...
90
 * not allowed.
89
 * not allowed.
91
 */
90
 */
92
struct i2c_driver {
91
struct i2c_driver {
93
	unsigned int class;
92
	unsigned int class;
Line 94... Line 93...
94
 
93
 
95
	/* Notifies the driver that a new bus has appeared or is about to be
94
	/* Notifies the driver that a new bus has appeared. You should avoid
96
	 * removed. You should avoid using this, it will be removed in a
-
 
97
	 * near future.
95
	 * using this, it will be removed in a near future.
98
	 */
96
	 */
99
	int (*attach_adapter)(struct i2c_adapter *) __deprecated;
-
 
Line 100... Line 97...
100
	int (*detach_adapter)(struct i2c_adapter *) __deprecated;
97
	int (*attach_adapter)(struct i2c_adapter *) __deprecated;
101
 
98
 
102
	/* Standard driver model interfaces */
99
	/* Standard driver model interfaces */
Line 190... Line 187...
190
	char		type[I2C_NAME_SIZE];
187
	char		type[I2C_NAME_SIZE];
191
	unsigned short	flags;
188
	unsigned short	flags;
192
	unsigned short	addr;
189
	unsigned short	addr;
193
	void		*platform_data;
190
	void		*platform_data;
194
	struct dev_archdata	*archdata;
191
	struct dev_archdata	*archdata;
195
#ifdef CONFIG_OF
-
 
196
	struct device_node *of_node;
-
 
197
#endif
-
 
198
	int		irq;
192
	int		irq;
199
};
193
};
Line 200... Line 194...
200
 
194
 
201
/**
195
/**