OSDN Git Service

Input: soc_button_array - add usage-page 0x01 usage-id 0xca mapping
[uclinux-h8/linux.git] / drivers / input / misc / soc_button_array.c
index 23520df..f53923b 100644 (file)
@@ -185,6 +185,10 @@ static int soc_button_parse_btn_desc(struct device *dev,
                info->name = "power";
                info->event_code = KEY_POWER;
                info->wakeup = true;
+       } else if (upage == 0x01 && usage == 0xca) {
+               info->name = "rotation lock switch";
+               info->event_type = EV_SW;
+               info->event_code = SW_ROTATE_LOCK;
        } else if (upage == 0x07 && usage == 0xe3) {
                info->name = "home";
                info->event_code = KEY_LEFTMETA;