diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-04-18 05:42:47 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-04-20 19:28:21 +0200 |
commit | 8c0776a8f046d5fb1804e525c3b6e9f897fe0d3f (patch) | |
tree | 72711fda6021bc405f64754b99ff2a6cfaa1bcd8 /drivers/input/touchscreen | |
parent | Input: alps - document separate pointstick button bits for V2 devices (diff) | |
download | linux-8c0776a8f046d5fb1804e525c3b6e9f897fe0d3f.tar.xz linux-8c0776a8f046d5fb1804e525c3b6e9f897fe0d3f.zip |
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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/elants_i2c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/elants_i2c.c b/drivers/input/touchscreen/elants_i2c.c index 43b3c9c2d788..0efd766a545b 100644 --- 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_%04x.bin", ts->hw_version); if (!fw_name) return -ENOMEM; |