diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-04-04 15:48:30 -0600 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-13 11:29:15 +0100 |
commit | 26b5e74d318241d95430d440e43ebbdfab3c70d4 (patch) | |
tree | efef02fcab888c3164f6920e064660cf5d44d6a0 /drivers/parisc | |
parent | 55c1371c79713fb3795a04d369e46680be5ae2bf (diff) |
regmap: introduce explicit bus_context for bus callbacks
The only context needed by I2C and SPI bus definitions is the device
itself; this can be converted to an i2c_client or spi_device in order
to perform IO on the device. However, other bus types may need more
context in order to perform IO. Enable this by having regmap_init accept
a bus_context parameter, and pass this to all bus callbacks. The
existing callbacks simply pass the struct device here. Future bus types
may pass something else.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/parisc')
0 files changed, 0 insertions, 0 deletions