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