aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/regmap/regmap-spi.c
AgeCommit message (Collapse)AuthorFilesLines
2013-10-14regmap: spi: Handle async writes of only one bufferMark Brown1-1/+2
If the value is zero then assume it has been included in the register data and don't send anything, minimising the number of interactions with the hardware. Signed-off-by: Mark Brown <[email protected]>
2013-02-05regmap: spi: Handle allocation failures gracefullyMark Brown1-0/+2
Signed-off-by: Mark Brown <[email protected]>
2013-01-29regmap: spi: Support asynchronous I/O for SPIMark Brown1-0/+52
Signed-off-by: Mark Brown <[email protected]>
2012-04-06regmap: introduce explicit bus_context for bus callbacksStephen Warren1-5/+8
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2012-01-30regmap: Implement managed regmap_init()Mark Brown1-0/+17
Save error handling and unwinding code in drivers by providing managed versions of the regmap init functions, simplifying usage. Signed-off-by: Mark Brown <[email protected]>
2011-10-25Merge branch 'for-linus' of git://opensource.wolfsonmicro.com/regmapLinus Torvalds1-2/+0
* 'for-linus' of git://opensource.wolfsonmicro.com/regmap: (62 commits) mfd: Enable rbtree cache for wm831x devices regmap: Support some block operations on cached devices regmap: Allow caches for devices with no defaults regmap: Ensure rbtree syncs registers set to zero properly regmap: Allow rbtree to cache zero default values regmap: Warn on raw I/O as well as bulk reads that bypass cache regmap: Return a sensible error code if we fail to read the cache regmap: Use bsearch() to search the register defaults regmap: Fix doc comment regmap: Optimize the lookup path to use binary search regmap: Ensure we scream if we enable cache bypass/only at the same time regmap: Implement regcache_cache_bypass helper function regmap: Save/restore the bypass state upon syncing regmap: Lock the sync path, ensure we use the lockless _regmap_write() regmap: Fix apostrophe usage regmap: Make _regmap_write() global regmap: Fix lock used for regcache_cache_only() regmap: Grab the lock in regcache_cache_only() regmap: Modify map->cache_bypass directly regmap: Fix regcache_sync generic implementation ...
2011-09-05regmap: Remove redundant owner field from the bus type structMark Brown1-1/+0
No longer used as users link directly with the bus types so the core module infrastructure does refcounting for us. Signed-off-by: Mark Brown <[email protected]>
2011-08-15regmap: using module facilities requires module.hStephen Rothwell1-0/+1
Commit b33f9cbd67ba ("regmap: Specify a module license") added a MODULES_LICENSE to this file without adding an include of module.h. module.h should have been included anyway, since this file has EXPORT_SYMBOLs as well. With the pending module.h split up, this would probably have caused build problems. Cc: Stephen Warren <[email protected]> Cc: Mark Brown <[email protected]> Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2011-08-12Merge branch 'regmap-linus' into regmap-nextMark Brown1-0/+2
2011-08-12regmap: Specify a module licenseStephen Warren1-0/+2
CONFIG_REGMAP_I2C/SPI are set to m when selected by a tristate config option that's set to m. The regmap modules don't specify a license, so fail to link to regmap_init at load time, since that is EXPORT_SYMBOL_GPL. Fix this by specifying a license for the regmap modules. Signed-off-by: Stephen Warren <[email protected]> Signed-off-by: Mark Brown <[email protected]>
2011-08-10regmap: Remove unused type and list fields from bus interfaceMark Brown1-1/+0
We no longer enumerate the bus types, we rely on the driver telling us this on init. Signed-off-by: Mark Brown <[email protected]>
2011-07-23regmap: Add SPI bus supportMark Brown1-0/+72
Signed-off-by: Mark Brown <[email protected]> Acked-by: Liam Girdwood <[email protected]> Acked-by: Wolfram Sang <[email protected]> Acked-by: Grant Likely <[email protected]>