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: 119306 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp4360840qgn; Mon, 20 Nov 2017 12:56:15 -0800 (PST) X-Google-Smtp-Source: AGs4zMb+GJRi21EHiXrNgbK39HmG+Q9L+wOTc8U4LnQZ/ztfPQbB7QWGJ9ipd5RVhq4B7RygfY45 X-Received: by 10.84.130.33 with SMTP id 30mr15469001plc.161.1511211375832; Mon, 20 Nov 2017 12:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511211375; cv=none; d=google.com; s=arc-20160816; b=R7O+XLAumSAmpY0Zi5gzJF3i30vP0SfsGUdLs5Woql2lcBPSpvZxiOUg/SjCyGRR7v YQl2C6PS2tOhN6IrL2sYx99/Rsg3beRRf6Vx07/6XRAoyvrtTCuOJGymK27iaJUdayvR yYbpIKBYOAlJsfvTjWkgazjVvKgPyqIWAICJHbHeJUpAxg77tzx4zaB2XTr8YVm2DNLv jK8f5zMVZicoKbz/4lOLgBpH+VWIonOTYjQz+BmclVVHEiXUBdjtd31Wl+JkIWSNkUlE RMkby9nrcgPLf1d5azGpu9NmefmbHnLVPAEzdqLps7A6J0mWpYPQIOmwYbo6uGW06SwF mHow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:date:subject:cc:from :arc-authentication-results; bh=xTjakKPZHwFyZJwzcfkMPNXrBlvTiD0BADXgsvrmc2Y=; b=c3xQ/zv6NS7heit/6pvXK16gQk4WoDxfDTSqiE6v0XZXBv8/EVHXeTcTP76ctWqLS6 /uhtEgijr8c5gUtL1XXSaSoWSvLtXbHMid/FmVZnEyAZzOvbaJZST4HLzXDA5AL/eM3f zVfJWtwqHik643K2u70tzTou4OjwSPrQY+il6zCEYYvXLdxJHDuNxQ91LuSKhE38+mWM dDAX4rVHswDvoHu+ESxN/uzjebplsz6VaQ8sQ47gGMabtBd239YfVY3tUDXtMGUWoFfl bcuNDcO2j1DtTjA82AwrKgSc/J93kXZHch0q65kpe6Sh9OABK3ReJ+cruxwElOeWOYGL zwhw== 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 d8si8762847pgv.92.2017.11.20.12.56.15; Mon, 20 Nov 2017 12:56:15 -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 S1752913AbdKTU4M (ORCPT + 14 others); Mon, 20 Nov 2017 15:56:12 -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-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.14.1 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