Merge "input: sensor: re-arrange the error handling procedure"