From patchwork Fri Jul 30 20:41:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 116114 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6UKdOVb025180 for ; Fri, 30 Jul 2010 20:41:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754752Ab0G3UlY (ORCPT ); Fri, 30 Jul 2010 16:41:24 -0400 Received: from solo.fdn.fr ([80.67.169.19]:60981 "EHLO solo.fdn.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754479Ab0G3UlX (ORCPT ); Fri, 30 Jul 2010 16:41:23 -0400 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTPS id 33C64448A8; Fri, 30 Jul 2010 22:41:19 +0200 (CEST) Received: from samy by const.ipv6 with local (Exim 4.72) (envelope-from ) id 1OewOM-0002Pq-A0; Fri, 30 Jul 2010 22:41:18 +0200 Date: Fri, 30 Jul 2010 22:41:18 +0200 From: Samuel Thibault To: Dmitry Torokhov , Alan Jenkins Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org Subject: Make keyboard.c match braille-only keyboards Message-ID: <20100730204117.GI4824@const.famille.thibault.fr> Mail-Followup-To: Samuel Thibault , Dmitry Torokhov , Alan Jenkins , Andrew Morton , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 30 Jul 2010 20:41:24 +0000 (UTC) diff --git a/drivers/char/keyboard.c b/drivers/char/keyboard.c index 54109dc..25be210 100644 --- a/drivers/char/keyboard.c +++ b/drivers/char/keyboard.c @@ -1315,10 +1315,14 @@ static bool kbd_match(struct input_handler *handler, struct input_dev *dev) if (test_bit(EV_SND, dev->evbit)) return true; - if (test_bit(EV_KEY, dev->evbit)) + if (test_bit(EV_KEY, dev->evbit)) { for (i = KEY_RESERVED; i < BTN_MISC; i++) if (test_bit(i, dev->keybit)) return true; + for (i = KEY_BRL_DOT1; i <= KEY_BRL_DOT10; i++) + if (test_bit(i, dev->keybit)) + return true; + } return false; }