[PATCH openEuler-5.10 23/28] Input: aiptek - properly check endpoint type