[PATCH openEuler-1.0-LTS 2/2] Input: aiptek - properly check endpoint type