Input: evdev - rearrange ioctl handling