Made it a valid patch file (for Debian stable):
amd64:/usr/src/linux-3.16.35# cd /usr/src/linux-3.16.35 amd64:/usr/src/linux-3.16.35# patch -p1 --dry-run </tmp/hid-core.c-3.16-to-4.5.diff checking file drivers/hid/usbhid/hid-core.c
See attached hid-core.c-3.16-to-4.5.diff
I don't know how it will work on Ubuntu. Maybe they differ too much.
Made it a valid patch file (for Debian stable):
amd64:/ usr/src/ linux-3. 16.35# cd /usr/src/ linux-3. 16.35 usr/src/ linux-3. 16.35# patch -p1 --dry-run </tmp/hid- core.c- 3.16-to- 4.5.diff hid/usbhid/ hid-core. c
amd64:/
checking file drivers/
See attached hid-core. c-3.16- to-4.5. diff
I don't know how it will work on Ubuntu. Maybe they differ too much.