Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
Pull input fixes from Dmitry Torokhov: - joydev now implements a blacklist to avoid creating joystick nodes for accelerometers found in composite devices such as PlaStation controllers - assorted driver fixes * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: Input: ims-psu - check if CDC union descriptor is sane Input: joydev - blacklist ds3/ds4/udraw motion sensors Input: allow matching device IDs on property bits Input: factor out and export input_device_id matching code Input: goodix - poll the 'buffer status' bit before reading data Input: axp20x-pek - fix module not auto-loading for axp221 pek Input: tca8418 - enable interrupt after it has been requested Input: stmfts - fix setting ABS_MT_POSITION_* maximum size Input: ti_am335x_tsc - fix incorrect step config for 5 wire touchscreen Input: synaptics - disable kernel tracking on SMBus devices
This commit is contained in:
@@ -105,6 +105,7 @@ int main(void)
|
||||
DEVID_FIELD(input_device_id, sndbit);
|
||||
DEVID_FIELD(input_device_id, ffbit);
|
||||
DEVID_FIELD(input_device_id, swbit);
|
||||
DEVID_FIELD(input_device_id, propbit);
|
||||
|
||||
DEVID(eisa_device_id);
|
||||
DEVID_FIELD(eisa_device_id, sig);
|
||||
|
@@ -761,7 +761,7 @@ static void do_input(char *alias,
|
||||
sprintf(alias + strlen(alias), "%X,*", i);
|
||||
}
|
||||
|
||||
/* input:b0v0p0e0-eXkXrXaXmXlXsXfXwX where X is comma-separated %02X. */
|
||||
/* input:b0v0p0e0-eXkXrXaXmXlXsXfXwXprX where X is comma-separated %02X. */
|
||||
static int do_input_entry(const char *filename, void *symval,
|
||||
char *alias)
|
||||
{
|
||||
@@ -779,6 +779,7 @@ static int do_input_entry(const char *filename, void *symval,
|
||||
DEF_FIELD_ADDR(symval, input_device_id, sndbit);
|
||||
DEF_FIELD_ADDR(symval, input_device_id, ffbit);
|
||||
DEF_FIELD_ADDR(symval, input_device_id, swbit);
|
||||
DEF_FIELD_ADDR(symval, input_device_id, propbit);
|
||||
|
||||
sprintf(alias, "input:");
|
||||
|
||||
@@ -816,6 +817,9 @@ static int do_input_entry(const char *filename, void *symval,
|
||||
sprintf(alias + strlen(alias), "w*");
|
||||
if (flags & INPUT_DEVICE_ID_MATCH_SWBIT)
|
||||
do_input(alias, *swbit, 0, INPUT_DEVICE_ID_SW_MAX);
|
||||
sprintf(alias + strlen(alias), "pr*");
|
||||
if (flags & INPUT_DEVICE_ID_MATCH_PROPBIT)
|
||||
do_input(alias, *propbit, 0, INPUT_DEVICE_ID_PROP_MAX);
|
||||
return 1;
|
||||
}
|
||||
ADD_TO_DEVTABLE("input", input_device_id, do_input_entry);
|
||||
|
Reference in New Issue
Block a user