Re: [PATCH 3/3] [regmap] [RESEND] Add "no-bus" option for regmap API

2013-01-14 Thread Mark Brown
On Mon, Jan 14, 2013 at 09:08:27AM -0800, Andrey Smirnov wrote: > On Sun, Jan 13, 2013 at 3:18 PM, Mark Brown > > On Sat, Jan 12, 2013 at 12:54:14PM -0800, Andrey Smirnov wrote: > >> + bool cache_registers; > > I'm afraid I don't quite understand this... > From my understanding of the code i

Re: [PATCH 3/3] [regmap] [RESEND] Add "no-bus" option for regmap API

2013-01-14 Thread Andrey Smirnov
On Sun, Jan 13, 2013 at 3:18 PM, Mark Brown wrote: > On Sat, Jan 12, 2013 at 12:54:14PM -0800, Andrey Smirnov wrote: > >> + bool cache_registers; >> + > > I'm afraid I don't quite understand this... > >> - if (!map->cache_bypass && map->format.format_write) { >> + if (!map->cache_bypas

Re: [PATCH 3/3] [regmap] [RESEND] Add "no-bus" option for regmap API

2013-01-13 Thread Mark Brown
On Sat, Jan 12, 2013 at 12:54:14PM -0800, Andrey Smirnov wrote: > + bool cache_registers; > + I'm afraid I don't quite understand this... > - if (!map->cache_bypass && map->format.format_write) { > + if (!map->cache_bypass && map->cache_registers) { > ret = regcache_wri

[PATCH 3/3] [regmap] [RESEND] Add "no-bus" option for regmap API

2013-01-12 Thread Andrey Smirnov
This commit adds provision for "no-bus" usage of the regmap API. In this configuration user can provide API with two callbacks 'reg_read' and 'reg_write' which are to be called when reads and writes to one of device's registers is performed. This is useful for devices that expose registers but whos