浏览代码

Input: Handle EV_PWR type of input caps in input_set_capability.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Dmitry Baryshkov 17 年之前
父节点
当前提交
22d1c398e8
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      drivers/input/input.c

+ 4 - 0
drivers/input/input.c

@@ -1266,6 +1266,10 @@ void input_set_capability(struct input_dev *dev, unsigned int type, unsigned int
 		__set_bit(code, dev->ffbit);
 		__set_bit(code, dev->ffbit);
 		break;
 		break;
 
 
+	case EV_PWR:
+		/* do nothing */
+		break;
+
 	default:
 	default:
 		printk(KERN_ERR
 		printk(KERN_ERR
 			"input_set_capability: unknown type %u (code %u)\n",
 			"input_set_capability: unknown type %u (code %u)\n",