Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

Понедельник, 10 февраля 2014, 11:29 UTC от Lee Jones <lee.jones@xxxxxxxxxx>:
> > Instead of define each button in separate variable, make an array
> > for storing all buttons. This change will help to add support for
> > other types of PMIC and add support for probing with devicetree
> > in the future.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx>
> > ---
> >  arch/arm/mach-imx/mach-mx31moboard.c   |  9 ++++--
> >  drivers/input/misc/mc13783-pwrbutton.c | 56
> +++++++++++++++++-----------------
> >  include/linux/mfd/mc13xxx.h            | 28 +++++++++--------
> 
> Are all the changes in these files entangled? If there is any way to
> make them orthogonal, then all the better.

Can you say the same thing in other words, I didn't understand a bit
of your comment.

...
> > +struct mc13xxx_button {
> > +	u16		keycode;
> > +	unsigned int	flags;
> > +#define MC13XXX_BUTTON_DBNC_0MS		0
> > +#define MC13XXX_BUTTON_DBNC_30MS	1
> > +#define MC13XXX_BUTTON_DBNC_150MS	2
> > +#define MC13XXX_BUTTON_DBNC_750MS	3
> > +#define MC13XXX_BUTTON_ENABLE		(1 << 2)
> > +#define MC13XXX_BUTTON_POL_INVERT	(1 << 3)
> > +#define MC13XXX_BUTTON_RESET_EN		(1 << 4)
> > +};
> > +
> 
> Please take the opportunity to remove this slab list of #defines from
> the centre of the struct definition. Just above will be fine.

I would like to make it in a separate patch for the whole header file later.

---
��.n��������+%������w��{.n�����{��)��^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�


[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux