Received: by 10.223.164.202 with SMTP id h10csp1023443wrb; Fri, 17 Nov 2017 12:33:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMYUOWJ6DLMOPvWdHW4fEb40Da2k0DEq+jgfs8a6o8U/V+FcJeDpooadUZALN46Eu+UVqb/9 X-Received: by 10.99.135.199 with SMTP id i190mr6096011pge.356.1510950801282; Fri, 17 Nov 2017 12:33:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510950801; cv=none; d=google.com; s=arc-20160816; b=jTcqkhSf9k+JhEFbwUXqogpKCYXfvC5QjVhvuZ1/WNY1E1NL5wx4mVMNihLEB0knxL fMV1SMl4wSu4i10COfzzaq+jiFUBocgVGuUvoxYJZZErgvPWIXlwLb/X6Vmtk+ulYYJR Nt7B4wOtEiPKcP9ht5y/p/+sfsiTl1svoGagChQnfBNcIbOJm597QRo5JdSEQRunmmxK 3I3JePkdv91DcFWFUHF8AlwdQroV5BaCDQ1gUabsud1mS38ESoHzhxJqOqKH5+thaS39 aBzmDPh2/ZB3MvPR7hEYZ5OZCR7W8X6l5BuR6bl2frJFldl1J7UArMh6RC8mGJ+yjfhy 8kew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=UGC47PLVGIA0p7p/LeVftENSMjz6m/qTwdUGlwih8k4=; b=H6XtL1P8l7LvQexSZOiVXEgxyj2APAPojDjpL7EU/oTHGsrbuptWQELtxrQf7gxgsx xLCVATPS5wOfWcy9QydKw1hT9zV78ETLFb52CVlqXuXJ1e2ZR09G1WHCkydLo6Lm5iuW xXOG8Wy5oftE28hWBRsIp6ctZ438S12MHFP1bqn/fTsZyroUCfeGlvucDuOI+bbwh4Wd a29JWE8vFOe4/2YPITV0MrYuj+l6BD48SEYQ54YM4drOl7mh0t2oxOwjg+rkOVc6UOD3 Ey3iJ1vmugkp7w7Rz3nYTlQPWnJR5rh28f35UFZhdPtOtdJvSPIbcNK+dNF9XWBWUqm/ lzIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si3074781pln.310.2017.11.17.12.33.07; Fri, 17 Nov 2017 12:33:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934995AbdKQORW (ORCPT + 93 others); Fri, 17 Nov 2017 09:17:22 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34912 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932708AbdKQORQ (ORCPT ); Fri, 17 Nov 2017 09:17:16 -0500 Received: from localhost (LFbn-1-12253-150.w90-92.abo.wanadoo.fr [90.92.67.150]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 83DF39F8; Fri, 17 Nov 2017 14:17:15 +0000 (UTC) Date: Fri, 17 Nov 2017 15:17:20 +0100 From: Greg Kroah-Hartman To: Dmitry Torokhov , Arvind Yadav Cc: linux-kernel@vger.kernel.org, Philippe Ombredanne , linux-input@vger.kernel.org Subject: [PATCH] input: remove unneeded DRIVER_LICENSE #defines Message-ID: <20171117141720.GB17880@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to #define the license of the driver, just put it in the MODULE_LICENSE() line directly as a text string. This allows tools that check that the module license matches the source code license to work properly, as there is no need to unwind the unneeded dereference. For some of these drivers, the #define is just a few lines above the MODULE_LICENSE() line, which is extra pointless. Cc: Dmitry Torokhov Cc: Arvind Yadav Reported-by: Philippe Ombredanne Signed-off-by: Greg Kroah-Hartman --- drivers/input/misc/keyspan_remote.c | 3 +-- drivers/input/tablet/acecad.c | 3 +-- drivers/input/tablet/hanwang.c | 3 +-- drivers/input/tablet/kbtab.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/input/misc/keyspan_remote.c b/drivers/input/misc/keyspan_remote.c index 77c47d6325fe..4f13b2f7bf4f 100644 --- a/drivers/input/misc/keyspan_remote.c +++ b/drivers/input/misc/keyspan_remote.c @@ -20,7 +20,6 @@ #define DRIVER_VERSION "v0.1" #define DRIVER_AUTHOR "Michael Downey " #define DRIVER_DESC "Driver for the USB Keyspan remote control." -#define DRIVER_LICENSE "GPL" /* Parameters that can be passed to the driver. */ static int debug; @@ -592,4 +591,4 @@ module_usb_driver(keyspan_driver); MODULE_DEVICE_TABLE(usb, keyspan_table); MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); diff --git a/drivers/input/tablet/acecad.c b/drivers/input/tablet/acecad.c index aebb3f9090cd..fcb67c7cd86b 100644 --- a/drivers/input/tablet/acecad.c +++ b/drivers/input/tablet/acecad.c @@ -35,12 +35,11 @@ */ #define DRIVER_VERSION "v3.2" #define DRIVER_DESC "USB Acecad Flair tablet driver" -#define DRIVER_LICENSE "GPL" #define DRIVER_AUTHOR "Edouard TISSERANT " MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); #define USB_VENDOR_ID_ACECAD 0x0460 #define USB_DEVICE_ID_FLAIR 0x0004 diff --git a/drivers/input/tablet/hanwang.c b/drivers/input/tablet/hanwang.c index df4bea96d7ed..70cb26bbfe1d 100644 --- a/drivers/input/tablet/hanwang.c +++ b/drivers/input/tablet/hanwang.c @@ -30,11 +30,10 @@ #define DRIVER_AUTHOR "Xing Wei " #define DRIVER_DESC "USB Hanwang tablet driver" -#define DRIVER_LICENSE "GPL" MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); #define USB_VENDOR_ID_HANWANG 0x0b57 #define HANWANG_TABLET_INT_CLASS 0x0003 diff --git a/drivers/input/tablet/kbtab.c b/drivers/input/tablet/kbtab.c index a41c3ff7c9af..bee18e33e261 100644 --- a/drivers/input/tablet/kbtab.c +++ b/drivers/input/tablet/kbtab.c @@ -15,11 +15,10 @@ #define DRIVER_VERSION "v0.0.2" #define DRIVER_AUTHOR "Josh Myer " #define DRIVER_DESC "USB KB Gear JamStudio Tablet driver" -#define DRIVER_LICENSE "GPL" MODULE_AUTHOR(DRIVER_AUTHOR); MODULE_DESCRIPTION(DRIVER_DESC); -MODULE_LICENSE(DRIVER_LICENSE); +MODULE_LICENSE("GPL"); #define USB_VENDOR_ID_KBGEAR 0x084e -- 2.15.0 From 1584342199971883013@xxx Fri Nov 17 19:21:04 +0000 2017 X-GM-THRID: 1584342199971883013 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread