From patchwork Sun Aug 6 07:41:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9883573 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 28BAD602B6 for ; Sun, 6 Aug 2017 07:44:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 161AE28528 for ; Sun, 6 Aug 2017 07:44:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 086AA285FB; Sun, 6 Aug 2017 07:44:25 +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 9317B28528 for ; Sun, 6 Aug 2017 07:44:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751415AbdHFHlt (ORCPT ); Sun, 6 Aug 2017 03:41:49 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:38663 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751409AbdHFHlq (ORCPT ); Sun, 6 Aug 2017 03:41:46 -0400 Received: by mail-pg0-f68.google.com with SMTP id 123so5831326pga.5; Sun, 06 Aug 2017 00:41:46 -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=763995dg2goTbbos33DqVHI/Mt6bAsX2rsjMtTVDwFw=; b=E3Yil96o+xsO+vFnGslF414bg8jTJXjXOOKudwQgtV+DgHC5P/GooQeDLWdE5evY/V pUdVrj26oV696S0nEpxKI061MuyY42u6y6nVVaFx2SuHCMnims7BkDWRanq30biUnLuR fUsRjETDLP2Nqf1qaPe6M0xd2v2j8ao9T7iZzAo81yT03aaVI5fiUmZbW7jnhJ0iau8n 6mUdRDcAe/bIPdZu4MYd7taQs2S7I6Y+RFgyQvsJaTE+TwYBqFBHcqgQhfD4YyX8c3mZ QGL/62jcA51hZxgh8NCM/tUeTEGHV6oG0on/4Ez5YRgoc69mDqfNa+bi1tylIhqvjWb2 zYhw== 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=763995dg2goTbbos33DqVHI/Mt6bAsX2rsjMtTVDwFw=; b=g7Zv5cov50uLbuJuUq6StJGjRfJa5fR99kK3Pb//CZrgqGTyVV8eXS5Z7k7huOaz1Z ovvWt8/PGaOJB2B301ImwbAozeeld0T3vrNcB/qJt10yY8KgO6yQ8vQL7VQe93UHyCjw sw79eb0oJf4WfWqoML7Q59oMLHy2/0cZZriw2sUirg8iZW2O+b+gLGLlOkX4TwMszSu7 HN5m3L/6tAuXAQuv+vir4Xd9c23cgxcHWkVqGVKKoUJZ2PLPReA4nqUPGShEMRGyoHrQ 9DabUrYhTvQR/04IYBxKZwG9LUL8OQPIJxk2SzV5bG164phO0NeKvniHoQ709GoRiTEO NczQ== X-Gm-Message-State: AIVw110HA2FDQH/tG3UB6QyDEwgV4tlW9hI40tsr6KtqFhIlEyql96mM 3GrZ43gXrey+3w== X-Received: by 10.99.108.132 with SMTP id h126mr7731223pgc.198.1502005306452; Sun, 06 Aug 2017 00:41:46 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.81]) by smtp.gmail.com with ESMTPSA id v11sm9166222pfl.101.2017.08.06.00.41.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 06 Aug 2017 00:41:46 -0700 (PDT) From: Arvind Yadav To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] Input: iforce: constify usb_device_id and fix space before '[' error: Date: Sun, 6 Aug 2017 13:11:20 +0530 Message-Id: <1502005287-17705-2-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/joystick/iforce/iforce-usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/joystick/iforce/iforce-usb.c b/drivers/input/joystick/iforce/iforce-usb.c index db64adf..db5cc35 100644 --- a/drivers/input/joystick/iforce/iforce-usb.c +++ b/drivers/input/joystick/iforce/iforce-usb.c @@ -209,7 +209,7 @@ static void iforce_usb_disconnect(struct usb_interface *intf) kfree(iforce); } -static struct usb_device_id iforce_usb_ids [] = { +static const struct usb_device_id iforce_usb_ids[] = { { USB_DEVICE(0x044f, 0xa01c) }, /* Thrustmaster Motor Sport GT */ { USB_DEVICE(0x046d, 0xc281) }, /* Logitech WingMan Force */ { USB_DEVICE(0x046d, 0xc291) }, /* Logitech WingMan Formula Force */