From patchwork Sun Aug 6 07:41:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6684602B6 for ; Sun, 6 Aug 2017 07:42:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A65622860D for ; Sun, 6 Aug 2017 07:42:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B47328645; Sun, 6 Aug 2017 07:42:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56C762860D for ; Sun, 6 Aug 2017 07:42:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751917AbdHFHmW (ORCPT ); Sun, 6 Aug 2017 03:42:22 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34300 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751719AbdHFHl6 (ORCPT ); Sun, 6 Aug 2017 03:41:58 -0400 Received: by mail-pf0-f195.google.com with SMTP id t86so6017190pfe.1; Sun, 06 Aug 2017 00:41:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=V7mSDpOFz/Vp+PKESHJnSIgLF5PNrKDYJorDcs+ZFSY=; b=KPa9PzAsOFKAOFkjUEjzHTnbyhAMwEfortbHUpNCUMXnZOkyPA0AqwetbcqaxGfSSo liUYVehc2Pq4lDBrYoQNVXGa5fB80KOC+pDjp5O87/relga2Ohisy0kh0jg2OyLKgsWv yHm3rsxN2bYF0mwBTtgxvNO9p/EbL71ot6TCor0ZxtO+OVzPMu4BLa/JhrFKkhu9SSZR +RqG759Ko2n8+yepVC8FD/cfy5GHuCBS+mWXhTSgJE55/unCvQQwgOM45IdPsbPtWr2z RxVJ1aNJAUUjtiiqwJjYi0MzlpX104HeKgDJnWtxaE1C+zvA6kv+nwEQjSgFABitkJNf pp6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=V7mSDpOFz/Vp+PKESHJnSIgLF5PNrKDYJorDcs+ZFSY=; b=m4d7H7IqKw7uFhUVT7P9n1TZB9u+SHeUBGDWEUcrltVFDOMoRNVWNqaF0fWoJhVSAA K7umTWWl3puPcb891YDyKqZ7ctqQod8b/i1UngRW7uzOFuBjIn8MPX8amrs+TjAQULsA STm+Q3quVD08l8FiKPLzxutQA3phXU1pn+8evRiEryHdT9zqofyygxyPdsgSmxWNAMsp iIsoB77MujwuTF70oTXR7kpb7OkyyzSL48L8fAF1x1aiZTWwaRA8u2lTdzMFpNMSHabj VM/DJjAR4zSYjEEB8GMuNPCJqmwqGmIT8pHpmavxtn9QgKlWKdLX366a0nwBVEmQD+ZG s74A== X-Gm-Message-State: AIVw113X+0PtX3PZ9gW1LjrLTFlFuUVkh9Fw+sXBgeArokPBThyJ3eue BaEmiK4ha4/BTQ== X-Received: by 10.99.157.198 with SMTP id i189mr7730888pgd.85.1502005318062; Sun, 06 Aug 2017 00:41:58 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:41:57 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] Input: acecad: constify usb_device_idi and fix space before '[' error. Date: Sun, 6 Aug 2017 13:11:26 +0530 Message-Id: <1502005287-17705-8-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502005287-17705-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1502005287-17705-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP usb_device_id are not supposed to change at runtime. All functions working with usb_device_id provided by work with const usb_device_id. So mark the non-const structs as const. Fix checkpatch.pl error: ERROR: space prohibited before open square bracket '['. Signed-off-by: Arvind Yadav --- drivers/input/tablet/acecad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index e86e377..77f41a5 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c @@ -260,7 +260,7 @@ static void usb_acecad_disconnect(struct usb_interface *intf) kfree(acecad); } -static struct usb_device_id usb_acecad_id_table [] = { +static const struct usb_device_id usb_acecad_id_table[] = { { USB_DEVICE(USB_VENDOR_ID_ACECAD, USB_DEVICE_ID_FLAIR), .driver_info = 0 }, { USB_DEVICE(USB_VENDOR_ID_ACECAD, USB_DEVICE_ID_302), .driver_info = 1 }, { }