uinput: Move SYS_INPUT_DIR to where it is used
authorNiclas Zeising <zeising@daemonic.se>
Thu, 13 Aug 2020 09:59:20 +0000 (11:59 +0200)
committerNiclas Zeising <zeising@daemonic.se>
Fri, 14 Aug 2020 15:50:56 +0000 (17:50 +0200)
commit153d8d0a5ad6bf2379bd03df6307029180bac0ab
tree5c2d9d3de39d2c25350f9fde2c0c815e11714253
parent1bf2b41d3f30c5c53ce6d23727c5d802225d8d2b
uinput: Move SYS_INPUT_DIR to where it is used

Move the definition of SYS_INPUT_DIR to where it is used, instead of at
the top of the file, to make it easier to find.
Undefine it at the end of usage to avoid accidental uses.

Signed-off-by: Niclas Zeising <zeising@daemonic.se>
libevdev/libevdev-uinput.c