From patchwork Mon Nov 20 20:55:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Chan X-Patchwork-Id: 10067261 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 412A7602B7 for ; Mon, 20 Nov 2017 20:56:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 336582949C for ; Mon, 20 Nov 2017 20:56:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 286582949E; Mon, 20 Nov 2017 20:56:12 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 BE0BD2949C for ; Mon, 20 Nov 2017 20:56:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752783AbdKTU4L (ORCPT ); Mon, 20 Nov 2017 15:56:11 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:44016 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752756AbdKTU4K (ORCPT ); Mon, 20 Nov 2017 15:56:10 -0500 Received: by mail-pf0-f194.google.com with SMTP id r68so2008852pfe.10; Mon, 20 Nov 2017 12:56:10 -0800 (PST) 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; bh=xTjakKPZHwFyZJwzcfkMPNXrBlvTiD0BADXgsvrmc2Y=; b=WigQ0wMWFJx/xlJ29sVBANOEe9lD+RS2cVYt1uRhs6maqiNlI71a1iVFjgAM/epO1L hFJCGfEn+GDyO0rassgY0Pk70y9sSGoslTxwxjqbGx0v0U4Y+pXR2MYcyYTBPEvAJneP Njr48Y3QCHGQox+R8WPIQo9NhExQUadSH/sqAly0e6nZoRONJPi2HA4YeAluuKu4UtDu XKKgB881kyWIP9+nGltZUY3eHOqA0JhA6asbzTMPv1Favxm49XXJxTAz2C1/YeejatEV FCCw9oJ+liDIY0dn8aRA2lubYTsTOH96N5BKBeMQzCNZ4qlN6C7czS+EJqbstrpGwLKF PumA== X-Gm-Message-State: AJaThX5R3/v7jPxiCbyTRObcWd6UnMJynyIB+oVtVKH2n1tWPuspqkOh teXWiVbokh/dH4izlYrWLBg= X-Google-Smtp-Source: AGs4zMa84sNke18NZEbuuGajt8l6NyuyBMoYu2uzDt+lWLMpVy2BDfEGHHFyTJ7u/0Wiv5qgVS7MTw== X-Received: by 10.98.102.219 with SMTP id s88mr12745609pfj.191.1511211369576; Mon, 20 Nov 2017 12:56:09 -0800 (PST) Received: from localhost.localdomain (crown-6-107.resnet.ucsc.edu. [169.233.6.107]) by smtp.googlemail.com with ESMTPSA id s25sm19550801pge.44.2017.11.20.12.56.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Nov 2017 12:56:08 -0800 (PST) From: Jesse Chan Cc: Jesse Chan , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Linus Walleij , Rama Krishna Phani A , Philippe Ombredanne , Kate Stewart , Greg Kroah-Hartman , Thomas Gleixner , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] iio: adc: qcom-vadc: add missing MODULE_DESCRIPTION/LICENSE Date: Mon, 20 Nov 2017 12:55:51 -0800 Message-Id: <20171120205601.85296-1-jc@linux.com> X-Mailer: git-send-email 2.14.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This change resolves a new compile-time warning when built as a loadable module: WARNING: modpost: missing MODULE_LICENSE() in drivers/iio/adc/qcom-vadc-common.o see include/linux/module.h for more information This adds the license as "GPL v2", which matches the header of the file. MODULE_DESCRIPTION is also added. Signed-off-by: Jesse Chan --- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 - drivers/iio/adc/qcom-spmi-vadc.c | 1 - drivers/iio/adc/qcom-vadc-common.c | 3 +++ drivers/iio/adc/qcom-vadc-common.h | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/iio/adc/qcom-pm8xxx-xoadc.c b/drivers/iio/adc/qcom-pm8xxx-xoadc.c index b093ecddf1a8..e7ba66798362 100644 --- a/drivers/iio/adc/qcom-pm8xxx-xoadc.c +++ b/drivers/iio/adc/qcom-pm8xxx-xoadc.c @@ -11,7 +11,6 @@ #include #include -#include #include #include #include diff --git a/drivers/iio/adc/qcom-spmi-vadc.c b/drivers/iio/adc/qcom-spmi-vadc.c index 3680e0d47412..569f88ce9385 100644 --- a/drivers/iio/adc/qcom-spmi-vadc.c +++ b/drivers/iio/adc/qcom-spmi-vadc.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/iio/adc/qcom-vadc-common.c b/drivers/iio/adc/qcom-vadc-common.c index 47d24ae5462f..8078a0cbdc46 100644 --- a/drivers/iio/adc/qcom-vadc-common.c +++ b/drivers/iio/adc/qcom-vadc-common.c @@ -229,3 +229,6 @@ int qcom_vadc_decimation_from_dt(u32 value) return __ffs64(value / VADC_DECIMATION_MIN); } EXPORT_SYMBOL(qcom_vadc_decimation_from_dt); + +MODULE_DESCRIPTION("Qualcomm voltage ADC driver"); +MODULE_LICENSE("GPL v2"); diff --git a/drivers/iio/adc/qcom-vadc-common.h b/drivers/iio/adc/qcom-vadc-common.h index 1d5354ff5c72..c62500147bb1 100644 --- a/drivers/iio/adc/qcom-vadc-common.h +++ b/drivers/iio/adc/qcom-vadc-common.h @@ -6,6 +6,8 @@ #ifndef QCOM_VADC_COMMON_H #define QCOM_VADC_COMMON_H +#include + #define VADC_CONV_TIME_MIN_US 2000 #define VADC_CONV_TIME_MAX_US 2100