[PATCH] ARM: imx: refactor mxc_iomux_mode()
Dmitry Voytik
voytikd at gmail.com
Thu Nov 6 10:36:39 PST 2014
Hi Peter,
On Tue, Nov 04, 2014 at 12:21:55PM +0000, Peter Chen wrote:
> > > -int mxc_iomux_mode(unsigned int pin_mode)
> > > +void mxc_iomux_mode(unsigned int pin_mode)
> > > {
> > > - u32 field, l, mode, ret = 0;
> > > + u32 field;
> > > + u32 l;
> > > + u32 mode;
> > > void __iomem *reg;
> > >
>
> Why you use three lines to define it, it makes the function longer.
You're right but there is a recommendation in coding style to declare
variables on separate lines (see Documentation/CodingStyle,
line 469), which improves readability, imho. By the way I saw many
times, that maintainers asked to declare variables separately.
> Besides, Shawn's email changes to : <shawn.guo at linaro.org>
Oops, didn't see that. Thanks!
WBR.
More information about the linux-arm-kernel
mailing list