Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 21 Feb 2003 10:39:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 21 Feb 2003 10:39:56 -0500 Received: from d146.dhcp212-198-27.noos.fr ([212.198.27.146]:23771 "EHLO deep-space-9.dsnet") by vger.kernel.org with ESMTP id ; Fri, 21 Feb 2003 10:39:55 -0500 Date: Fri, 21 Feb 2003 16:49:53 +0100 From: Stelian Pop To: Linux Kernel Mailing List Cc: Marcelo Tosatti , Alan Cox Subject: [PATCH 2.4.21-pre4-bk] make mousedev accept the jogdial Message-ID: <20030221164953.K12004@deep-space-9.dsnet> Reply-To: Stelian Pop Mail-Followup-To: Stelian Pop , Linux Kernel Mailing List , Marcelo Tosatti , Alan Cox Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1222 Lines: 41 Hi, The following patch is required in order to make the input subsystem accept the Sony Vaio jogdial as a valid input device. A similar fix want into the 2.5 tree. Marcelo, Alan, please apply. Thanks. Stelian. ===== drivers/input/mousedev.c 1.5 vs edited ===== --- 1.5/drivers/input/mousedev.c Tue Feb 5 08:49:25 2002 +++ edited/drivers/input/mousedev.c Fri Feb 7 11:20:54 2003 @@ -409,10 +409,13 @@ int minor = 0; if (!test_bit(EV_KEY, dev->evbit) || - (!test_bit(BTN_LEFT, dev->keybit) && !test_bit(BTN_TOUCH, dev->keybit))) + (!test_bit(BTN_LEFT, dev->keybit) && + !test_bit(BTN_MIDDLE, dev->keybit) && + !test_bit(BTN_TOUCH, dev->keybit))) return NULL; if ((!test_bit(EV_REL, dev->evbit) || !test_bit(REL_X, dev->relbit)) && + (!test_bit(EV_REL, dev->evbit) || !test_bit(REL_WHEEL, dev->relbit)) && (!test_bit(EV_ABS, dev->evbit) || !test_bit(ABS_X, dev->absbit))) return NULL; -- Stelian Pop - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/