projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2310568
)
Input: elants_i2c - zero-extend hardware ID in firmware name
author
Dmitry Torokhov
<
[email protected]
>
Sat, 18 Apr 2015 03:42:47 +0000
(20:42 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Mon, 20 Apr 2015 17:28:21 +0000
(10:28 -0700)
Let's zero-extend hardware id number when forming firmware file name,
to avoid kernel requesting firmware like "elants_i2c_ 0.bin", which
is quite unexpected.
Acked-by: Charlie Mooney<
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/elants_i2c.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/elants_i2c.c
b/drivers/input/touchscreen/elants_i2c.c
index 43b3c9c2d788ed2637178e4e6b4395cec3a552af..0efd766a545bc677cce1fa2f753265dd06bfe8d9 100644
(file)
--- a/
drivers/input/touchscreen/elants_i2c.c
+++ b/
drivers/input/touchscreen/elants_i2c.c
@@
-699,7
+699,7
@@
static int elants_i2c_fw_update(struct elants_data *ts)
char *fw_name;
int error;
- fw_name = kasprintf(GFP_KERNEL, "elants_i2c_%4x.bin", ts->hw_version);
+ fw_name = kasprintf(GFP_KERNEL, "elants_i2c_%
0
4x.bin", ts->hw_version);
if (!fw_name)
return -ENOMEM;