mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
Input: elants_i2c - zero-extend hardware ID in firmware name
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<charliemooney@chromium.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
2310568f57
commit
8c0776a8f0
1 changed files with 1 additions and 1 deletions
|
@ -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_%04x.bin", ts->hw_version);
|
||||
if (!fw_name)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in a new issue