diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-08-04 14:55:34 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 20:50:48 +0400 |
commit | 4622709445705c1e423d2addcfd8ccae052fe0ba (patch) | |
tree | c9032374e8f99a5bb9b8b8e012e0a6de4c9c3846 /drivers/spi/atmel_spi.h | |
parent | ccb86a6907c9ba7b5be5f521362fc308e80bed34 (diff) | |
download | linux-4622709445705c1e423d2addcfd8ccae052fe0ba.tar.xz |
Driver core: Add support for compatibility classes
When turning class devices into bus devices, we may need to
temporarily add links in sysfs so that user-space applications
are not confused. This is done by adding the following API:
* Functions to register and unregister compatibility classes.
These appear in sysfs at the same location as regular classes, but
instead of class devices, they contain links to bus devices.
* Functions to create and delete such links. Additionally, the caller
can optionally pass a target device to which a "device" link should
point (typically that would be the device's parent), to fully emulate
the original class device.
The i2c subsystem will be the first user of this API, as i2c adapters
are being converted from class devices to bus devices.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Diffstat (limited to 'drivers/spi/atmel_spi.h')
0 files changed, 0 insertions, 0 deletions