From: Stephen Warren Date: Wed, 4 Apr 2012 21:48:30 +0000 (-0600) Subject: regmap: introduce explicit bus_context for bus callbacks X-Git-Tag: v3.5-rc1~178^2~6^3~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0135bbcc7a0cc056f0203ff839466236b8e3dc19;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed