* [PATCH] Input: elan_i2c - Add all valid ic type for i2c/smbus
@ 2015-09-23 1:26 duson
2015-09-29 0:17 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: duson @ 2015-09-23 1:26 UTC (permalink / raw)
To: Dmitry Torokhov; +Cc: linux-input, linux-kernel
Signed-of-by: Duson Lin <dusonlin@emc.com.tw>
---
drivers/input/mouse/elan_i2c_core.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index 16ac595..357670e 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -98,16 +98,25 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
u16 *signature_address)
{
switch (iap_version) {
+ case 0x00:
+ case 0x06:
case 0x08:
*validpage_count = 512;
break;
- case 0x09:
case 0x03:
+ case 0x07:
+ case 0x09:
+ case 0x0A:
+ case 0x0B:
+ case 0x0C:
*validpage_count = 768;
break;
case 0x0D:
*validpage_count = 896;
break;
+ case 0x0E:
+ *validpage_count = 640;
+ break;
default:
/* unknown ic type clear value */
*validpage_count = 0;
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Input: elan_i2c - Add all valid ic type for i2c/smbus
2015-09-23 1:26 [PATCH] Input: elan_i2c - Add all valid ic type for i2c/smbus duson
@ 2015-09-29 0:17 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2015-09-29 0:17 UTC (permalink / raw)
To: duson; +Cc: linux-input, linux-kernel
On Wed, Sep 23, 2015 at 09:26:23AM +0800, duson wrote:
> Signed-of-by: Duson Lin <dusonlin@emc.com.tw>
Applied, thank you.
> ---
> drivers/input/mouse/elan_i2c_core.c | 11 ++++++++++-
> 1 file changed, 10 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
> index 16ac595..357670e 100644
> --- a/drivers/input/mouse/elan_i2c_core.c
> +++ b/drivers/input/mouse/elan_i2c_core.c
> @@ -98,16 +98,25 @@ static int elan_get_fwinfo(u8 iap_version, u16 *validpage_count,
> u16 *signature_address)
> {
> switch (iap_version) {
> + case 0x00:
> + case 0x06:
> case 0x08:
> *validpage_count = 512;
> break;
> - case 0x09:
> case 0x03:
> + case 0x07:
> + case 0x09:
> + case 0x0A:
> + case 0x0B:
> + case 0x0C:
> *validpage_count = 768;
> break;
> case 0x0D:
> *validpage_count = 896;
> break;
> + case 0x0E:
> + *validpage_count = 640;
> + break;
> default:
> /* unknown ic type clear value */
> *validpage_count = 0;
> --
> 1.7.9.5
>
>
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-09-29 0:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-23 1:26 [PATCH] Input: elan_i2c - Add all valid ic type for i2c/smbus duson
2015-09-29 0:17 ` Dmitry Torokhov
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).