[alsa-devel] [PATCH v5 1/3] ARM: mxs: add saif clkmux functions
Lothar Waßmann
LW at KARO-electronics.de
Fri Nov 18 03:29:55 EST 2011
Hi,
Dong Aisheng-B29396 writes:
[...]
> > > +#define HW_DIGCTL_CTRL 0x0
> > > +#define BP_DIGCTL_CTRL_SAIF_CLKMUX (10)
> >
> > Do you need the parenthesis above ?
> >
> I'm not sure about his.
> HW_DIGCTL_CTRL is the register offset.
> Do we have to do this?
>
You need parens around macro parameters that are used in an expression
inside the macro. But you never ever need to enclose a bare number in
parens!
Lothar Waßmann
--
___________________________________________________________
Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996
www.karo-electronics.de | info at karo-electronics.de
___________________________________________________________
More information about the linux-arm-kernel
mailing list