diff mbox

[3/3] input:stmpe-ts:Initialize the phys field for input device

Message ID 94587f7ddc4cf5503a1824df4c1fb53e553881b7.1352474824.git.viresh.kumar@linaro.org (mailing list archive)
State New, archived
Headers show

Commit Message

Viresh Kumar Nov. 9, 2012, 3:27 p.m. UTC
From: Vipul Kumar Samar <vipulkumar.samar@st.com>

Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
---
 drivers/input/touchscreen/stmpe-ts.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Viresh Kumar Nov. 20, 2012, 6:58 a.m. UTC | #1
On 9 November 2012 20:57, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> From: Vipul Kumar Samar <vipulkumar.samar@st.com>
>
> Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
> ---
>  drivers/input/touchscreen/stmpe-ts.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
> index 66b932e..9896095 100644
> --- a/drivers/input/touchscreen/stmpe-ts.c
> +++ b/drivers/input/touchscreen/stmpe-ts.c
> @@ -317,6 +317,7 @@ static int __devinit stmpe_input_probe(struct platform_device *pdev)
>                 return ret;
>
>         idev->name = STMPE_TS_NAME;
> +       idev->phys = STMPE_TS_NAME"/input0";
>         idev->id.bustype = BUS_I2C;
>         idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
>         idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);

Missed this one too?
--
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
Dmitry Torokhov Nov. 20, 2012, 7:47 a.m. UTC | #2
On Tue, Nov 20, 2012 at 12:28:08PM +0530, Viresh Kumar wrote:
> On 9 November 2012 20:57, Viresh Kumar <viresh.kumar@linaro.org> wrote:
> > From: Vipul Kumar Samar <vipulkumar.samar@st.com>
> >
> > Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com>
> > ---
> >  drivers/input/touchscreen/stmpe-ts.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
> > index 66b932e..9896095 100644
> > --- a/drivers/input/touchscreen/stmpe-ts.c
> > +++ b/drivers/input/touchscreen/stmpe-ts.c
> > @@ -317,6 +317,7 @@ static int __devinit stmpe_input_probe(struct platform_device *pdev)
> >                 return ret;
> >
> >         idev->name = STMPE_TS_NAME;
> > +       idev->phys = STMPE_TS_NAME"/input0";
> >         idev->id.bustype = BUS_I2C;
> >         idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
> >         idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
> 
> Missed this one too?

Nope, it's commit b8d52e2b9f7eb43075e6ef4e23f5e51e70548f11

Thanks.
Viresh Kumar Nov. 20, 2012, 7:57 a.m. UTC | #3
On 20 November 2012 13:17, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> Nope, it's commit b8d52e2b9f7eb43075e6ef4e23f5e51e70548f11

Sorry, my fault.
I searched for Viresh in git log of your master and next branches. And i
didn't signed-off this patch.
--
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
diff mbox

Patch

diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c
index 66b932e..9896095 100644
--- a/drivers/input/touchscreen/stmpe-ts.c
+++ b/drivers/input/touchscreen/stmpe-ts.c
@@ -317,6 +317,7 @@  static int __devinit stmpe_input_probe(struct platform_device *pdev)
 		return ret;
 
 	idev->name = STMPE_TS_NAME;
+	idev->phys = STMPE_TS_NAME"/input0";
 	idev->id.bustype = BUS_I2C;
 	idev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
 	idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);