From patchwork Sun Nov 28 06:38:30 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Torokhov X-Patchwork-Id: 361822 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAS6cufj015194 for ; Sun, 28 Nov 2010 06:38:56 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751538Ab0K1Gii (ORCPT ); Sun, 28 Nov 2010 01:38:38 -0500 Received: from mail-iw0-f194.google.com ([209.85.214.194]:45335 "EHLO mail-iw0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750947Ab0K1Gih (ORCPT ); Sun, 28 Nov 2010 01:38:37 -0500 Received: by iwn7 with SMTP id 7so621409iwn.1 for ; Sat, 27 Nov 2010 22:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=L+jUXVApMyMFNUsN5YwAGMazFl/sf0ZamXUJzMG7zqU=; b=PGz4cw8nYH/GB2nscJHr941z1RpTgwCUDpRWP1uVMBUci6i29ClOxARZQSXFaulvYT ydc/QTqeyqHvzPzpeEDL0C+gmAK9ZHpsfvr7BA0ykRaDp03AAP6OqaLJ9NA4TYPljWST J7G2cQbk1xNnGxj6iiijEcgujvN3321aHoYRc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=BI5f1KrqFa/RmPMzBRKmitDJ+7xibCmwMg9vB4RCsT6m2CLiBLGeFGuU5CwKduqKBy jL7YmAlB6pk2khrPfUbsUa4DKVaKD6spYc2v9rS2btYcniL/mdeVHwNUjda2OI+qTn47 j+bdEJhz9ubleYcIOx5Ouc2Ru7CyNURigrius= Received: by 10.231.32.10 with SMTP id a10mr3781340ibd.183.1290926316022; Sat, 27 Nov 2010 22:38:36 -0800 (PST) Received: from mailhub.coreip.homeip.net (c-98-234-113-65.hsd1.ca.comcast.net [98.234.113.65]) by mx.google.com with ESMTPS id 8sm4257918iba.16.2010.11.27.22.38.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Nov 2010 22:38:34 -0800 (PST) Date: Sat, 27 Nov 2010 22:38:30 -0800 From: Dmitry Torokhov To: Jeremy Moles Cc: linux-input@vger.kernel.org, Jiri Kosina Subject: Re: Researching An Experimental Touchscreen Driver Message-ID: <20101128063829.GB14499@core.coreip.homeip.net> References: <1290614820.3294.37.camel@bathysphere> <20101127235133.GB29981@core.coreip.homeip.net> <1290911010.1932.9.camel@bathysphere> <20101128030729.GA4795@core.coreip.homeip.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20101128030729.GA4795@core.coreip.homeip.net> User-Agent: Mutt/1.5.21 (2010-09-15) 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 (demeter1.kernel.org [140.211.167.41]); Sun, 28 Nov 2010 06:38:57 +0000 (UTC) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index b133d47..8b421e6 100644 --- a/drivers/hid/hid-core.c +++ b/drivers/hid/hid-core.c @@ -1230,7 +1230,7 @@ void hid_disconnect(struct hid_device *hdev) EXPORT_SYMBOL_GPL(hid_disconnect); /* a list of devices for which there is a specialized driver on HID bus */ -static const struct hid_device_id hid_blacklist[] = { +static const struct hid_device_id hid_have_special_driver[] = { { HID_USB_DEVICE(USB_VENDOR_ID_3M, USB_DEVICE_ID_3M1968) }, { HID_USB_DEVICE(USB_VENDOR_ID_3M, USB_DEVICE_ID_3M2256) }, { HID_USB_DEVICE(USB_VENDOR_ID_A4TECH, USB_DEVICE_ID_A4TECH_WCP32PU) }, @@ -1493,9 +1493,9 @@ static int hid_bus_match(struct device *dev, struct device_driver *drv) if (!hid_match_device(hdev, hdrv)) return 0; - /* generic wants all non-blacklisted */ + /* generic wants all that don't have specialized driver */ if (!strncmp(hdrv->name, "generic-", 8)) - return !hid_match_id(hdev, hid_blacklist); + return !hid_match_id(hdev, hid_have_special_driver); return 1; }