Re: [PATCH 2/2] regmap: debugfs: Optimize seeking within blocks of registers

2013-02-08 Thread Mark Brown
On Thu, Feb 07, 2013 at 11:40:32AM +, Dimitris Papastamos wrote: > Optimize this so that we can better guess where to start scanning > from. We know the length of the register field format, therefore > given the file pointer position align to the nearest register > field and scan from there

Re: [PATCH 2/2] regmap: debugfs: Optimize seeking within blocks of registers

2013-02-08 Thread Mark Brown
On Thu, Feb 07, 2013 at 11:40:32AM +, Dimitris Papastamos wrote: Optimize this so that we can better guess where to start scanning from. We know the length of the register field format, therefore given the file pointer position align to the nearest register field and scan from there

[PATCH 2/2] regmap: debugfs: Optimize seeking within blocks of registers

2013-02-07 Thread Dimitris Papastamos
Optimize this so that we can better guess where to start scanning from. We know the length of the register field format, therefore given the file pointer position align to the nearest register field and scan from there onwards. We round down in this calculation and we let the rest of the code

[PATCH 2/2] regmap: debugfs: Optimize seeking within blocks of registers

2013-02-07 Thread Dimitris Papastamos
Optimize this so that we can better guess where to start scanning from. We know the length of the register field format, therefore given the file pointer position align to the nearest register field and scan from there onwards. We round down in this calculation and we let the rest of the code