diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-21 21:46:39 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-21 21:46:39 -0400 |
| commit | e5f468b3f23313994c5e6c356135f9b0d76bcb94 (patch) | |
| tree | c6577d47c4c2404dc76e52ec91156d581f9b77e7 /scripts | |
| parent | ec0145e9cc46c2e8636b14f08f53c3011967c20e (diff) | |
| parent | ea04efee7635c9120d015dcdeeeb6988130cb67a (diff) | |
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
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mod/devicetable-offsets.c | 1 | ||||
| -rw-r--r-- | scripts/mod/file2alias.c | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mod/devicetable-offsets.c b/scripts/mod/devicetable-offsets.c index e4d90e50f6fe..812657ab5aa3 100644 --- a/scripts/mod/devicetable-offsets.c +++ b/scripts/mod/devicetable-offsets.c | |||
| @@ -105,6 +105,7 @@ int main(void) | |||
| 105 | DEVID_FIELD(input_device_id, sndbit); | 105 | DEVID_FIELD(input_device_id, sndbit); |
| 106 | DEVID_FIELD(input_device_id, ffbit); | 106 | DEVID_FIELD(input_device_id, ffbit); |
| 107 | DEVID_FIELD(input_device_id, swbit); | 107 | DEVID_FIELD(input_device_id, swbit); |
| 108 | DEVID_FIELD(input_device_id, propbit); | ||
| 108 | 109 | ||
| 109 | DEVID(eisa_device_id); | 110 | DEVID(eisa_device_id); |
| 110 | DEVID_FIELD(eisa_device_id, sig); | 111 | DEVID_FIELD(eisa_device_id, sig); |
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 29d6699d5a06..bc25898f6df0 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -761,7 +761,7 @@ static void do_input(char *alias, | |||
| 761 | sprintf(alias + strlen(alias), "%X,*", i); | 761 | sprintf(alias + strlen(alias), "%X,*", i); |
| 762 | } | 762 | } |
| 763 | 763 | ||
| 764 | /* input:b0v0p0e0-eXkXrXaXmXlXsXfXwX where X is comma-separated %02X. */ | 764 | /* input:b0v0p0e0-eXkXrXaXmXlXsXfXwXprX where X is comma-separated %02X. */ |
| 765 | static int do_input_entry(const char *filename, void *symval, | 765 | static int do_input_entry(const char *filename, void *symval, |
| 766 | char *alias) | 766 | char *alias) |
| 767 | { | 767 | { |
| @@ -779,6 +779,7 @@ static int do_input_entry(const char *filename, void *symval, | |||
| 779 | DEF_FIELD_ADDR(symval, input_device_id, sndbit); | 779 | DEF_FIELD_ADDR(symval, input_device_id, sndbit); |
| 780 | DEF_FIELD_ADDR(symval, input_device_id, ffbit); | 780 | DEF_FIELD_ADDR(symval, input_device_id, ffbit); |
| 781 | DEF_FIELD_ADDR(symval, input_device_id, swbit); | 781 | DEF_FIELD_ADDR(symval, input_device_id, swbit); |
| 782 | DEF_FIELD_ADDR(symval, input_device_id, propbit); | ||
| 782 | 783 | ||
| 783 | sprintf(alias, "input:"); | 784 | sprintf(alias, "input:"); |
| 784 | 785 | ||
| @@ -816,6 +817,9 @@ static int do_input_entry(const char *filename, void *symval, | |||
| 816 | sprintf(alias + strlen(alias), "w*"); | 817 | sprintf(alias + strlen(alias), "w*"); |
| 817 | if (flags & INPUT_DEVICE_ID_MATCH_SWBIT) | 818 | if (flags & INPUT_DEVICE_ID_MATCH_SWBIT) |
| 818 | do_input(alias, *swbit, 0, INPUT_DEVICE_ID_SW_MAX); | 819 | do_input(alias, *swbit, 0, INPUT_DEVICE_ID_SW_MAX); |
| 820 | sprintf(alias + strlen(alias), "pr*"); | ||
| 821 | if (flags & INPUT_DEVICE_ID_MATCH_PROPBIT) | ||
| 822 | do_input(alias, *propbit, 0, INPUT_DEVICE_ID_PROP_MAX); | ||
| 819 | return 1; | 823 | return 1; |
| 820 | } | 824 | } |
| 821 | ADD_TO_DEVTABLE("input", input_device_id, do_input_entry); | 825 | ADD_TO_DEVTABLE("input", input_device_id, do_input_entry); |
