Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753191AbdHISVs (ORCPT ); Wed, 9 Aug 2017 14:21:48 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:33386 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbdHISVp (ORCPT ); Wed, 9 Aug 2017 14:21:45 -0400 From: Arvind Yadav To: jikos@kernel.org, benjamin.tissoires@redhat.com Cc: linux-usb@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] constify hid usb_device_id and fix space before '[' error Date: Wed, 9 Aug 2017 23:51:33 +0530 Message-Id: <1502302895-30181-1-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 17 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 '['. Arvind Yadav (2): [PATCH 1/2] HID: usbkbd: constify usb_device_id and fix space before '[' error. [PATCH 2/2] HID: usbmouse: constify usb_device_id and fix space before '[' error drivers/hid/usbhid/usbkbd.c | 2 +- drivers/hid/usbhid/usbmouse.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.7.4