[alsa-devel] [PATCH 3/7] ASoC: wm8903: generalize GPIO control register bits
Charles Keepax
ckeepax at opensource.wolfsonmicro.com
Tue Jun 2 11:19:43 CEST 2015
On Tue, Jun 02, 2015 at 02:09:14AM +0300, Vladimir Zapolskiy wrote:
> All GPIO1/2/3/4/5 control registers have the same bit map, but in
> implementation of gpiolib callbacks WM8903_GPn_*, WM8903_GP1_* and
> WM8903_GP2_* macro are mixed up. Replace particular GPIOn control
> register bit definitions with generic ones and save ~150 LoCs.
>
> No functional change.
>
> Signed-off-by: Vladimir Zapolskiy <vz at mleia.com>
> Cc: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>
> Cc: Lars-Peter Clausen <lars at metafoo.de>
> Cc: Axel Lin <axel.lin at ingics.com>
> Cc: patches at opensource.wolfsonmicro.com
> ---
If Mark's ok with this I think I am. Generally those register
files tend to list all the bits on the chip, but certainly in
this case nothing is really added by listing all the GPIO
registers seperately.
Acked-by: Charles Keepax <ckeepax at opensource.wolfsonmicro.com>
Thanks,
Charles
More information about the Alsa-devel
mailing list