]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elan_i2c - add product IDs FW names
authorCharlie Mooney <charliemooney@chromium.org>
Mon, 8 Jun 2015 23:48:23 +0000 (16:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 9 Jun 2015 00:12:25 +0000 (17:12 -0700)
commitb237c3a18232a2255e2fb27874b3803eb73db906
treee7fb5b43a30524e2c05261df219da205125cc0fd
parentdb3b1f141567cfe246906df46adc219e7956727f
Input: elan_i2c - add product IDs FW names

Previously the elan_i2c touchpad driver would simply request the firmware
"/lib/firmware/elan_i2c.bin", which does not work well if there are
multiple such devices in the system.

Let's append the "product ID" (by using the same function as the sysfs
interface for consistency) to the filename.  This results in filenames of
the form "/lib/firmware/elan_i2c_72.0.bin", allowing you to support
multiple elan_i2c touchpads on the same device by simply naming each
device's FW with its corresponding product ID.  This way when you trigger a
fw update the driver will load the correct binary.

Signed-off-by: Charlie Mooney <charliemooney@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c.h
drivers/input/mouse/elan_i2c_core.c