aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2009-06-19 10:58:20 -0400
committerJean Delvare <khali@linux-fr.org>2009-06-19 10:58:20 -0400
commit99cd8e25875a109455b709b5a41d4891b8d8e58e (patch)
tree38907f3c6df0048ce0c4764a282c4a21c74aa49f /include
parent35fc37f8188177e3ba3e7f99a6e3300e490e9181 (diff)
i2c: Add a sysfs interface to instantiate devices
Add a sysfs interface to instantiate and delete I2C devices. This is primarily a replacement of the force_* module parameters implemented by some i2c drivers. These module parameters were implemented internally by the I2C_CLIENT_INSMOD* macros, which don't scale well. This can also be used when developing a driver on a self-soldered board which doesn't yet have proper I2C device declaration at the platform level, and presumably for various debugging situations. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/i2c.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 5f8157610c64..844d2662a875 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -178,7 +178,8 @@ struct i2c_driver {
178 * @driver: device's driver, hence pointer to access routines 178 * @driver: device's driver, hence pointer to access routines
179 * @dev: Driver model device node for the slave. 179 * @dev: Driver model device node for the slave.
180 * @irq: indicates the IRQ generated by this device (if any) 180 * @irq: indicates the IRQ generated by this device (if any)
181 * @detected: member of an i2c_driver.clients list 181 * @detected: member of an i2c_driver.clients list or i2c-core's
182 * userspace_devices list
182 * 183 *
183 * An i2c_client identifies a single device (i.e. chip) connected to an 184 * An i2c_client identifies a single device (i.e. chip) connected to an
184 * i2c bus. The behaviour exposed to Linux is defined by the driver 185 * i2c bus. The behaviour exposed to Linux is defined by the driver