From patchwork Wed Sep 5 02:19:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 1404871 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DFBD23FC71 for ; Wed, 5 Sep 2012 02:19:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753190Ab2IECTt (ORCPT ); Tue, 4 Sep 2012 22:19:49 -0400 Received: from mail-ie0-f174.google.com ([209.85.223.174]:44703 "EHLO mail-ie0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753038Ab2IECTt (ORCPT ); Tue, 4 Sep 2012 22:19:49 -0400 Received: by ieje11 with SMTP id e11so9678iej.19 for ; Tue, 04 Sep 2012 19:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:content-type:x-mailer :content-transfer-encoding:mime-version; bh=Cwu7FrREl/VWbYK/nRj3N0f/ojmdbkeAh9LCJUtUHIw=; b=XCu5VRIiIhgLRb6xDMEVvJlWOR918ihRFoprzE563ieA7ak3n1JXz2NrM0ArTyHSST foyYAKSqKjoI4WsayekhSlFlSdT/BozHjKh2JZaQHKObezjJq07pTMyGFdqQNHZM2Nz/ jBMtNQ8Oz6Lvuile9YpDOkIafOME4Insx8mCMduf9wZAWn4suSUqrUc9oXu9VYL9Lg2R B+nrlC1uRTxyX2ZTNtNr8XRVB2YZr8QMdeMGKfWjA+S4eIQemyk9f/CM9zYaOQG5Ddnv Zo57I9izyuyJWvNkuhOQm/Ie/PmyQlZvJIIZhee6H4udq1Eso/9sKLXjfwmqjqtoRe5z V2NA== Received: by 10.50.40.130 with SMTP id x2mr3088223igk.9.1346811587425; Tue, 04 Sep 2012 19:19:47 -0700 (PDT) Received: from [114.39.107.6] (114-39-107-6.dynamic.hinet.net. [114.39.107.6]) by mx.google.com with ESMTPS id i17sm14564184igd.5.2012.09.04.19.19.44 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2012 19:19:46 -0700 (PDT) Message-ID: <1346811570.3994.0.camel@phoenix> Subject: [PATCH] HID: hid-lcpower: Use HID_UP_LOGIVENDOR instead of hard coded 0x0ffbc0000 From: Axel Lin To: Jiri Kosina Cc: Chris Schlund , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 05 Sep 2012 10:19:30 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Signed-off-by: Axel Lin --- drivers/hid/hid-lcpower.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-lcpower.c b/drivers/hid/hid-lcpower.c index c4fe9bd0..22bc14a 100644 --- a/drivers/hid/hid-lcpower.c +++ b/drivers/hid/hid-lcpower.c @@ -24,7 +24,7 @@ static int ts_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { - if ((usage->hid & HID_USAGE_PAGE) != 0x0ffbc0000) + if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) return 0; switch (usage->hid & HID_USAGE) {