diff mbox series

[1/2] Input: elan_i2c - Add ic type 0x11, 0x13, 0x14.

Message ID 20200714105633.15099-1-jingle.wu@emc.com.tw (mailing list archive)
State Under Review
Headers show
Series [1/2] Input: elan_i2c - Add ic type 0x11, 0x13, 0x14. | expand

Commit Message

Jingle.Wu July 14, 2020, 10:56 a.m. UTC
Add ic type 0x11, 0x13, 0x14 page sizes for update firmware.

Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw>.
---
 drivers/input/mouse/elan_i2c_core.c | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/drivers/input/mouse/elan_i2c_core.c b/drivers/input/mouse/elan_i2c_core.c
index 3f9354baac4b..e90beada0ecf 100644
--- a/drivers/input/mouse/elan_i2c_core.c
+++ b/drivers/input/mouse/elan_i2c_core.c
@@ -126,6 +126,15 @@  static int elan_get_fwinfo(u16 ic_type, u16 *validpage_count,
 	case 0x10:
 		*validpage_count = 1024;
 		break;
+	case 0x11:
+		*validpage_count = 1280;
+		break;
+	case 0x13:
+		*validpage_count = 2048;
+		break;
+	case 0x14:
+		*validpage_count = 1024;
+		break;
 	default:
 		/* unknown ic type clear value */
 		*validpage_count = 0;