* [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
@ 2014-02-10 4:22 Alexander Shiyan
2014-02-10 11:29 ` Lee Jones
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Shiyan @ 2014-02-10 4:22 UTC (permalink / raw)
To: linux-input
Cc: Dmitry Torokhov, Shawn Guo, Sascha Hauer, Samuel Ortiz, Lee Jones,
Alexander Shiyan
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@mail.ru>
---
arch/arm/mach-imx/mach-mx31moboard.c | 9 ++++--
drivers/input/misc/mc13783-pwrbutton.c | 56 +++++++++++++++++-----------------
include/linux/mfd/mc13xxx.h | 28 +++++++++--------
3 files changed, 49 insertions(+), 44 deletions(-)
diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c
index b3738e6..7f13c47 100644
--- a/arch/arm/mach-imx/mach-mx31moboard.c
+++ b/arch/arm/mach-imx/mach-mx31moboard.c
@@ -276,9 +276,12 @@ static struct mc13xxx_leds_platform_data moboard_leds = {
};
static struct mc13xxx_buttons_platform_data moboard_buttons = {
- .b1on_flags = MC13783_BUTTON_DBNC_750MS | MC13783_BUTTON_ENABLE |
- MC13783_BUTTON_POL_INVERT,
- .b1on_key = KEY_POWER,
+ .buttons[0] = {
+ .keycode = KEY_POWER,
+ .flags = MC13XXX_BUTTON_ENABLE |
+ MC13XXX_BUTTON_DBNC_750MS |
+ MC13XXX_BUTTON_POL_INVERT,
+ },
};
static struct mc13xxx_codec_platform_data moboard_codec = {
diff --git a/drivers/input/misc/mc13783-pwrbutton.c b/drivers/input/misc/mc13783-pwrbutton.c
index 0df6e8d..60be67a 100644
--- a/drivers/input/misc/mc13783-pwrbutton.c
+++ b/drivers/input/misc/mc13783-pwrbutton.c
@@ -36,7 +36,7 @@ struct mc13783_pwrb {
#define MC13783_PWRB_B2_POL_INVERT (1 << 1)
#define MC13783_PWRB_B3_POL_INVERT (1 << 2)
int flags;
- unsigned short keymap[3];
+ unsigned short keymap[MAX13XXX_NUM_BUTTONS];
};
#define MC13783_REG_INTERRUPT_SENSE_1 5
@@ -116,24 +116,24 @@ static int mc13783_pwrbutton_probe(struct platform_device *pdev)
goto free_input_dev;
}
- reg |= (pdata->b1on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON1BDBNC;
- reg |= (pdata->b2on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON2BDBNC;
- reg |= (pdata->b3on_flags & 0x3) << MC13783_POWER_CONTROL_2_ON3BDBNC;
+ reg |= (pdata->buttons[0].flags & 0x3) << MC13783_POWER_CONTROL_2_ON1BDBNC;
+ reg |= (pdata->buttons[1].flags & 0x3) << MC13783_POWER_CONTROL_2_ON2BDBNC;
+ reg |= (pdata->buttons[2].flags & 0x3) << MC13783_POWER_CONTROL_2_ON3BDBNC;
priv->pwr = pwr;
priv->mc13783 = mc13783;
mc13xxx_lock(mc13783);
- if (pdata->b1on_flags & MC13783_BUTTON_ENABLE) {
- priv->keymap[0] = pdata->b1on_key;
- if (pdata->b1on_key != KEY_RESERVED)
- __set_bit(pdata->b1on_key, pwr->keybit);
+ if (pdata->buttons[0].flags & MC13XXX_BUTTON_ENABLE) {
+ priv->keymap[0] = pdata->buttons[0].keycode;
+ if (priv->keymap[0] != KEY_RESERVED)
+ __set_bit(priv->keymap[0], pwr->keybit);
- if (pdata->b1on_flags & MC13783_BUTTON_POL_INVERT)
+ if (pdata->buttons[0].flags & MC13XXX_BUTTON_POL_INVERT)
priv->flags |= MC13783_PWRB_B1_POL_INVERT;
- if (pdata->b1on_flags & MC13783_BUTTON_RESET_EN)
+ if (pdata->buttons[0].flags & MC13XXX_BUTTON_RESET_EN)
reg |= MC13783_POWER_CONTROL_2_ON1BRSTEN;
err = mc13xxx_irq_request(mc13783, MC13783_IRQ_ONOFD1,
@@ -144,15 +144,15 @@ static int mc13783_pwrbutton_probe(struct platform_device *pdev)
}
}
- if (pdata->b2on_flags & MC13783_BUTTON_ENABLE) {
- priv->keymap[1] = pdata->b2on_key;
- if (pdata->b2on_key != KEY_RESERVED)
- __set_bit(pdata->b2on_key, pwr->keybit);
+ if (pdata->buttons[1].flags & MC13XXX_BUTTON_ENABLE) {
+ priv->keymap[1] = pdata->buttons[1].keycode;
+ if (priv->keymap[1] != KEY_RESERVED)
+ __set_bit(priv->keymap[1], pwr->keybit);
- if (pdata->b2on_flags & MC13783_BUTTON_POL_INVERT)
+ if (pdata->buttons[1].flags & MC13XXX_BUTTON_POL_INVERT)
priv->flags |= MC13783_PWRB_B2_POL_INVERT;
- if (pdata->b2on_flags & MC13783_BUTTON_RESET_EN)
+ if (pdata->buttons[1].flags & MC13XXX_BUTTON_RESET_EN)
reg |= MC13783_POWER_CONTROL_2_ON2BRSTEN;
err = mc13xxx_irq_request(mc13783, MC13783_IRQ_ONOFD2,
@@ -163,15 +163,15 @@ static int mc13783_pwrbutton_probe(struct platform_device *pdev)
}
}
- if (pdata->b3on_flags & MC13783_BUTTON_ENABLE) {
- priv->keymap[2] = pdata->b3on_key;
- if (pdata->b3on_key != KEY_RESERVED)
- __set_bit(pdata->b3on_key, pwr->keybit);
+ if (pdata->buttons[2].flags & MC13XXX_BUTTON_ENABLE) {
+ priv->keymap[2] = pdata->buttons[2].keycode;
+ if (priv->keymap[2] != KEY_RESERVED)
+ __set_bit(priv->keymap[2], pwr->keybit);
- if (pdata->b3on_flags & MC13783_BUTTON_POL_INVERT)
+ if (pdata->buttons[2].flags & MC13XXX_BUTTON_POL_INVERT)
priv->flags |= MC13783_PWRB_B3_POL_INVERT;
- if (pdata->b3on_flags & MC13783_BUTTON_RESET_EN)
+ if (pdata->buttons[2].flags & MC13XXX_BUTTON_RESET_EN)
reg |= MC13783_POWER_CONTROL_2_ON3BRSTEN;
err = mc13xxx_irq_request(mc13783, MC13783_IRQ_ONOFD3,
@@ -208,15 +208,15 @@ static int mc13783_pwrbutton_probe(struct platform_device *pdev)
free_irq:
mc13xxx_lock(mc13783);
- if (pdata->b3on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[2].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(mc13783, MC13783_IRQ_ONOFD3, priv);
free_irq_b2:
- if (pdata->b2on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[1].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(mc13783, MC13783_IRQ_ONOFD2, priv);
free_irq_b1:
- if (pdata->b1on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[0].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(mc13783, MC13783_IRQ_ONOFD1, priv);
free_priv:
@@ -238,11 +238,11 @@ static int mc13783_pwrbutton_remove(struct platform_device *pdev)
mc13xxx_lock(priv->mc13783);
- if (pdata->b3on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[2].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(priv->mc13783, MC13783_IRQ_ONOFD3, priv);
- if (pdata->b2on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[1].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(priv->mc13783, MC13783_IRQ_ONOFD2, priv);
- if (pdata->b1on_flags & MC13783_BUTTON_ENABLE)
+ if (pdata->buttons[0].flags & MC13XXX_BUTTON_ENABLE)
mc13xxx_irq_free(priv->mc13783, MC13783_IRQ_ONOFD1, priv);
mc13xxx_unlock(priv->mc13783);
diff --git a/include/linux/mfd/mc13xxx.h b/include/linux/mfd/mc13xxx.h
index a326c85..4cedec4 100644
--- a/include/linux/mfd/mc13xxx.h
+++ b/include/linux/mfd/mc13xxx.h
@@ -172,20 +172,22 @@ struct mc13xxx_leds_platform_data {
u32 led_control[MAX_LED_CONTROL_REGS];
};
+#define MAX13XXX_NUM_BUTTONS 3
+
+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)
+};
+
struct mc13xxx_buttons_platform_data {
-#define MC13783_BUTTON_DBNC_0MS 0
-#define MC13783_BUTTON_DBNC_30MS 1
-#define MC13783_BUTTON_DBNC_150MS 2
-#define MC13783_BUTTON_DBNC_750MS 3
-#define MC13783_BUTTON_ENABLE (1 << 2)
-#define MC13783_BUTTON_POL_INVERT (1 << 3)
-#define MC13783_BUTTON_RESET_EN (1 << 4)
- int b1on_flags;
- unsigned short b1on_key;
- int b2on_flags;
- unsigned short b2on_key;
- int b3on_flags;
- unsigned short b3on_key;
+ struct mc13xxx_button buttons[MAX13XXX_NUM_BUTTONS];
};
struct mc13xxx_ts_platform_data {
--
1.8.3.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
2014-02-10 4:22 [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible Alexander Shiyan
@ 2014-02-10 11:29 ` Lee Jones
2014-02-11 6:46 ` Alexander Shiyan
0 siblings, 1 reply; 6+ messages in thread
From: Lee Jones @ 2014-02-10 11:29 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-input, Dmitry Torokhov, Shawn Guo, Sascha Hauer,
Samuel Ortiz
> 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@mail.ru>
> ---
> 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.
<snip>
> --- a/include/linux/mfd/mc13xxx.h
> +++ b/include/linux/mfd/mc13xxx.h
> @@ -172,20 +172,22 @@ struct mc13xxx_leds_platform_data {
> u32 led_control[MAX_LED_CONTROL_REGS];
> };
>
> +#define MAX13XXX_NUM_BUTTONS 3
> +
> +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.
> struct mc13xxx_buttons_platform_data {
> -#define MC13783_BUTTON_DBNC_0MS 0
> -#define MC13783_BUTTON_DBNC_30MS 1
> -#define MC13783_BUTTON_DBNC_150MS 2
> -#define MC13783_BUTTON_DBNC_750MS 3
> -#define MC13783_BUTTON_ENABLE (1 << 2)
> -#define MC13783_BUTTON_POL_INVERT (1 << 3)
> -#define MC13783_BUTTON_RESET_EN (1 << 4)
> - int b1on_flags;
> - unsigned short b1on_key;
> - int b2on_flags;
> - unsigned short b2on_key;
> - int b3on_flags;
> - unsigned short b3on_key;
> + struct mc13xxx_button buttons[MAX13XXX_NUM_BUTTONS];
> };
>
> struct mc13xxx_ts_platform_data {
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
2014-02-10 11:29 ` Lee Jones
@ 2014-02-11 6:46 ` Alexander Shiyan
2014-02-11 9:17 ` Lee Jones
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Shiyan @ 2014-02-11 6:46 UTC (permalink / raw)
To: Lee Jones
Cc: linux-input, Dmitry Torokhov, Shawn Guo, Sascha Hauer,
Samuel Ortiz
Hello.
Понедельник, 10 февраля 2014, 11:29 UTC от Lee Jones <lee.jones@linaro.org>:
> > 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@mail.ru>
> > ---
> > 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.
---
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
2014-02-11 6:46 ` Alexander Shiyan
@ 2014-02-11 9:17 ` Lee Jones
2014-02-11 9:42 ` Alexander Shiyan
0 siblings, 1 reply; 6+ messages in thread
From: Lee Jones @ 2014-02-11 9:17 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-input, Dmitry Torokhov, Shawn Guo, Sascha Hauer,
Samuel Ortiz
> > > 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@mail.ru>
> > > ---
> > > 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.
Do all of this changes in each of the files listed above depend on
each other?
> ...
> > > +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.
You may as well do it in this commit? Just add them outside of the
struct definition instead of inside.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
2014-02-11 9:17 ` Lee Jones
@ 2014-02-11 9:42 ` Alexander Shiyan
2014-02-11 10:07 ` Lee Jones
0 siblings, 1 reply; 6+ messages in thread
From: Alexander Shiyan @ 2014-02-11 9:42 UTC (permalink / raw)
To: Lee Jones
Cc: linux-input, Dmitry Torokhov, Shawn Guo, Sascha Hauer,
Samuel Ortiz
Hello.
> > > > 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@mail.ru>
> > > > ---
> > > > 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.
>
> Do all of this changes in each of the files listed above depend on
> each other?
Yes, mc13783-pwrbutton.c & mc13xxx.h - changing the structure,
mach-mx31moboard.c - updating current users.
> > > > +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.
>
> You may as well do it in this commit? Just add them outside of the
> struct definition instead of inside.
OK, I'll do it in version 2, but I meant that I could change it for the other
structures in this header. As part of the input subsystem, I can not do that.
Thanks.
---
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible
2014-02-11 9:42 ` Alexander Shiyan
@ 2014-02-11 10:07 ` Lee Jones
0 siblings, 0 replies; 6+ messages in thread
From: Lee Jones @ 2014-02-11 10:07 UTC (permalink / raw)
To: Alexander Shiyan
Cc: linux-input, Dmitry Torokhov, Shawn Guo, Sascha Hauer,
Samuel Ortiz
> > > > > 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@mail.ru>
> > > > > ---
> > > > > 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.
> >
> > Do all of this changes in each of the files listed above depend on
> > each other?
>
> Yes, mc13783-pwrbutton.c & mc13xxx.h - changing the structure,
> mach-mx31moboard.c - updating current users.
>
> > > > > +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.
> >
> > You may as well do it in this commit? Just add them outside of the
> > struct definition instead of inside.
>
> OK, I'll do it in version 2, but I meant that I could change it for the other
> structures in this header. As part of the input subsystem, I can not do that.
If changes can be subsystem orthogonal, it's better to keep them that
way. Fix this issue in this patch and fix any other issues within this
file in another patch which will go through the MFD tree.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-02-11 10:07 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-10 4:22 [PATCH 1/4] input: mc13783: Make mc13xxx_buttons_platform_data more flexible Alexander Shiyan
2014-02-10 11:29 ` Lee Jones
2014-02-11 6:46 ` Alexander Shiyan
2014-02-11 9:17 ` Lee Jones
2014-02-11 9:42 ` Alexander Shiyan
2014-02-11 10:07 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).