diff mbox

[13/15] Input: synaptics-rmi4 - properly set F01 container on PDT scan

Message ID 1390521623-6491-14-git-send-email-courtney.cavin@sonymobile.com (mailing list archive)
State New, archived
Headers show

Commit Message

Courtney Cavin Jan. 24, 2014, midnight UTC
Cc: Christopher Heiny <cheiny@synaptics.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
---
 drivers/input/rmi4/rmi_driver.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Christopher Heiny Feb. 4, 2014, 11:10 p.m. UTC | #1
On 01/23/2014 04:00 PM, Courtney Cavin wrote:

Although necessary, this is redundant to changes already submitted.

> Cc: Christopher Heiny <cheiny@synaptics.com>
> Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
> ---
>   drivers/input/rmi4/rmi_driver.c | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
> index 52345ae..9d8d6ec 100644
> --- a/drivers/input/rmi4/rmi_driver.c
> +++ b/drivers/input/rmi4/rmi_driver.c
> @@ -488,6 +488,8 @@ static int create_function(struct rmi_device *rmi_dev,
>   		return error;
>
>   	list_add_tail(&fn->node, &data->function_list);
> +	if (pdt->function_number == 0x01)
> +		data->f01_container = fn;
>
>   	return 0;
>   }
>
Courtney Cavin Feb. 5, 2014, 2:39 a.m. UTC | #2
On Wed, Feb 05, 2014 at 12:10:41AM +0100, Christopher Heiny wrote:
> On 01/23/2014 04:00 PM, Courtney Cavin wrote:
> 
> Although necessary, this is redundant to changes already submitted.
> 

Indeed. Sorry.

> > Cc: Christopher Heiny <cheiny@synaptics.com>
> > Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> > Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
> > ---
> >   drivers/input/rmi4/rmi_driver.c | 2 ++
> >   1 file changed, 2 insertions(+)
> >
> > diff --git a/drivers/input/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
> > index 52345ae..9d8d6ec 100644
> > --- a/drivers/input/rmi4/rmi_driver.c
> > +++ b/drivers/input/rmi4/rmi_driver.c
> > @@ -488,6 +488,8 @@ static int create_function(struct rmi_device *rmi_dev,
> >   		return error;
> >
> >   	list_add_tail(&fn->node, &data->function_list);
> > +	if (pdt->function_number == 0x01)
> > +		data->f01_container = fn;
> >
> >   	return 0;
> >   }
> >
--
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/rmi4/rmi_driver.c b/drivers/input/rmi4/rmi_driver.c
index 52345ae..9d8d6ec 100644
--- a/drivers/input/rmi4/rmi_driver.c
+++ b/drivers/input/rmi4/rmi_driver.c
@@ -488,6 +488,8 @@  static int create_function(struct rmi_device *rmi_dev,
 		return error;
 
 	list_add_tail(&fn->node, &data->function_list);
+	if (pdt->function_number == 0x01)
+		data->f01_container = fn;
 
 	return 0;
 }