Skip to content

Commit 873a3a1

Browse files
jinglewudtor
authored andcommitted
Input: elan_i2c - add ic type 0x15
The update firmware flow of ic type 0x15 is same with ic type 0x14. Signed-off-by: Jingle Wu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 74d905d commit 873a3a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/input/mouse/elan_i2c_core.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ static int elan_get_fwinfo(u16 ic_type, u8 iap_version, u16 *validpage_count,
138138
*validpage_count = 2048;
139139
break;
140140
case 0x14:
141+
case 0x15:
141142
*validpage_count = 1024;
142143
break;
143144
default:
@@ -151,7 +152,7 @@ static int elan_get_fwinfo(u16 ic_type, u8 iap_version, u16 *validpage_count,
151152
*signature_address =
152153
(*validpage_count * ETP_FW_PAGE_SIZE) - ETP_FW_SIGNATURE_SIZE;
153154

154-
if (ic_type == 0x14 && iap_version >= 2) {
155+
if ((ic_type == 0x14 || ic_type == 0x15) && iap_version >= 2) {
155156
*validpage_count /= 8;
156157
*page_size = ETP_FW_PAGE_SIZE_512;
157158
} else if (ic_type >= 0x0D && iap_version >= 1) {

0 commit comments

Comments
 (0)