Re: [PATCH v2 03/11] regmap: Add regmap_field APIs

2013-06-11 Thread Srinivas KANDAGATLA
On 11/06/13 11:48, Mark Brown wrote: > On Mon, Jun 10, 2013 at 10:21:58AM +0100, Srinivas KANDAGATLA wrote: >> It is common to access regmap registers at bit level, using >> regmap_update_bits or regmap_read functions, however the end user has to >> take care of a mask or shifting. This becomes ove

Re: [PATCH v2 03/11] regmap: Add regmap_field APIs

2013-06-11 Thread Mark Brown
On Mon, Jun 10, 2013 at 10:21:58AM +0100, Srinivas KANDAGATLA wrote: > It is common to access regmap registers at bit level, using > regmap_update_bits or regmap_read functions, however the end user has to > take care of a mask or shifting. This becomes overhead when such use > cases are high. Havi

[PATCH v2 03/11] regmap: Add regmap_field APIs

2013-06-10 Thread Srinivas KANDAGATLA
It is common to access regmap registers at bit level, using regmap_update_bits or regmap_read functions, however the end user has to take care of a mask or shifting. This becomes overhead when such use cases are high. Having a common function to do this is much convenient and less error prone. The