[PATCH] regmap: Fix regcache-rbtree sync

2013-03-13 Thread Lars-Peter Clausen
The last register block, which falls into the specified range, is not handled correctly. The formula which calculates the number of register which should be synced is inverse (and off by one). E.g. if all registers in that block should be synced only one is synced, and if only one should be synced

Re: [PATCH] regmap: Fix regcache-rbtree sync

2013-03-13 Thread Mark Brown
On Wed, Mar 13, 2013 at 04:38:33PM +0100, Lars-Peter Clausen wrote: The last register block, which falls into the specified range, is not handled correctly. The formula which calculates the number of register which should be Applied, thanks. signature.asc Description: Digital signature