Received: by 10.213.65.68 with SMTP id h4csp1302284imn; Wed, 21 Mar 2018 07:32:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELtxskjiO2gD7DhogXCdpxU3f8ezzPTwiZtLJI2HcEgTOPFakZ5uo9Wq4dvH7uCe89F3JsRd X-Received: by 2002:a17:902:ab85:: with SMTP id f5-v6mr17115096plr.380.1521642734300; Wed, 21 Mar 2018 07:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521642734; cv=none; d=google.com; s=arc-20160816; b=CbTQRYt7Yp5NqvxdtyAMu71tPCWd9yhgMNLoPq0OW338VFio8LbbaIBD1cf9AzQAzp 1x7s3DaQIhIM2Izxvl5Y653Rw236rLeIHAXLVEOb9UVu8pMbeyuu5QwME1A9PBA0fliX hSjKa4AZl3NfuWVwUvBWR8Ep2/ApZ3YugTmt7Nh4CDEpTtaWTU2FjaJqZNBbGug3j0kv dFaKwcJ10Cq4SYGwTd++h9JGOkrsvRjc16YGQv6tulqr8xJGkjTOKi4o/nU8g0ONbiWQ Jk9WjjjEiOLuZiXSTVts4PJ8LmZcAPbN5RXpYhvKbqJhSauOUzAAVvS02lvMFmeIA/a3 w/kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-authentication-results; bh=XvgSozR9Dn+BKymzumz+sBjK49cIKNvt4Qf1ZGeCOro=; b=Oqx1qa6lVoXpjHRHnwiqqvS89IPN21pcxz8yHBF4F2xt/M1dprZY6ka7ZPVYmBWGBH fFzSh3FCufOMtuHZmNi3/gnv31UPC+4I7Bqrm2PrIhH8xMD8RUU+6JjF9p+OW6RzN8e6 w88FKXPwupICFd3+IL+CajoiJot08UHhNaw6stRKEYOohs11dx7bf9ms+PykTgg9IXT3 XU4jFHaOBepOem2GKCz4QsDtAcIisMvQJxfif2dbOecJ8yRBvhXCr7Ld4lWMRakrBDDW uTvu4RDXAHFZRTj+uZdHxhyNqsxjSXkuI782qmp+bBBIUF7UfynV0lyurN26xx9v/EG3 ZDJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Wqr2ok2W; 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 j87si3248647pfk.78.2018.03.21.07.31.59; Wed, 21 Mar 2018 07:32:14 -0700 (PDT) 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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Wqr2ok2W; 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 S1752559AbeCUOau (ORCPT + 99 others); Wed, 21 Mar 2018 10:30:50 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:39630 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752527AbeCUOak (ORCPT ); Wed, 21 Mar 2018 10:30:40 -0400 Received: by mail-qt0-f196.google.com with SMTP id v11so5420703qtj.6 for ; Wed, 21 Mar 2018 07:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=XvgSozR9Dn+BKymzumz+sBjK49cIKNvt4Qf1ZGeCOro=; b=Wqr2ok2WYH5LL7sARBOvZ1wtKkN8OzjI1r/7xhZXVfGp8MjhIcSyVOIdbJkVC4xDqe XLpvqJpDImD6y+C7eJ616QGrKzLQ/LsM78Yl5xFbsTLYjNW2P5cYjw4gSeYK89IZXBC9 95htVQWm7f+KefidlNWlpo9mpYaAh7C92KBEh0kX34/XUzk8pxq2wnpZPOddF3e0TJNf 8jU9IOKzMOyzyIsJrv3CTf1SsZSRxoavF3LAF5UfRi1WONzaOPIh+I2lDyE5fJOI0PKF 2grgvtqteeyj+jPyhOJ3Y5/BDONohF8qC9LfTGoaeFZ3JAFu31Xv90Cf4Jh6QMXAdwWh LFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XvgSozR9Dn+BKymzumz+sBjK49cIKNvt4Qf1ZGeCOro=; b=PTMmo9HEczzpr6y4RaTlUmmsy6maF2fnB5L+9rorHXCQ6vIt5lviR6CL7YLH2rSN+q g6quUUd9VvHISVq6qZUvV7hWg+qyPjtEg474bJ3uv3In4ivQb4TZKtDFy2hr5CerG239 XDoYZArukfuXkdX+NTzTYOprq4Sa+L0AEtLLgTifEAwok1si9EOAa1LxdoG5Y+sGq+/q /Mqg0QzwRXM20uekDnSFzrUwg1vBCYrHREz7S88hUpbyRhVn4iPsG0d136udH8V6OrwR tQFkPmSvsrhzMO/IXpFcUJZGr6bMprV9PGTS7Y4ZEtftcmU1FavoYSOzFqJ3oLHZprs3 dvMg== X-Gm-Message-State: AElRT7FjfHlNP/qhHbXJ5iAI8AvxxXt5QreZ7/hIoP6S962gC81q7KWb FTeb1TNpEZH81Z+ca6dcGN1bwA== X-Received: by 10.200.47.26 with SMTP id j26mr29821417qta.185.1521642639413; Wed, 21 Mar 2018 07:30:39 -0700 (PDT) Received: from localhost.localdomain ([190.210.56.45]) by smtp.gmail.com with ESMTPSA id g14sm3118592qtk.71.2018.03.21.07.30.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 21 Mar 2018 07:30:38 -0700 (PDT) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, hernan@vanguardiasur.com.ar Subject: [PATCH 11/11] Move cdc ad7746 driver out of staging to mainline iio Date: Wed, 21 Mar 2018 11:28:59 -0300 Message-Id: <1521642539-4845-12-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> References: <1521642539-4845-1-git-send-email-hernan@vanguardiasur.com.ar> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Also modify the proper Kconfigs and move documentation. Signed-off-by: HernĂ¡n Gonzalez --- .../devicetree/bindings/{staging => }/iio/cdc/ad7746.txt | 0 drivers/iio/Kconfig | 1 + drivers/iio/cdc/Kconfig | 16 ++++++++++++++++ drivers/{staging => }/iio/cdc/ad7746.c | 2 +- drivers/staging/iio/cdc/Kconfig | 10 ---------- {drivers/staging => include/linux}/iio/cdc/ad7746.h | 4 ---- 6 files changed, 18 insertions(+), 15 deletions(-) rename Documentation/devicetree/bindings/{staging => }/iio/cdc/ad7746.txt (100%) create mode 100644 drivers/iio/cdc/Kconfig rename drivers/{staging => }/iio/cdc/ad7746.c (99%) rename {drivers/staging => include/linux}/iio/cdc/ad7746.h (88%) diff --git a/Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt b/Documentation/devicetree/bindings/iio/cdc/ad7746.txt similarity index 100% rename from Documentation/devicetree/bindings/staging/iio/cdc/ad7746.txt rename to Documentation/devicetree/bindings/iio/cdc/ad7746.txt diff --git a/drivers/iio/Kconfig b/drivers/iio/Kconfig index b3c8c6e..d1c309b 100644 --- a/drivers/iio/Kconfig +++ b/drivers/iio/Kconfig @@ -71,6 +71,7 @@ config IIO_TRIGGERED_EVENT source "drivers/iio/accel/Kconfig" source "drivers/iio/adc/Kconfig" source "drivers/iio/amplifiers/Kconfig" +source "drivers/iio/cdc/Kconfig" source "drivers/iio/chemical/Kconfig" source "drivers/iio/common/Kconfig" source "drivers/iio/counter/Kconfig" diff --git a/drivers/iio/cdc/Kconfig b/drivers/iio/cdc/Kconfig new file mode 100644 index 0000000..d3a8600 --- /dev/null +++ b/drivers/iio/cdc/Kconfig @@ -0,0 +1,16 @@ +# +# CDC drivers +# +menu "Capacitance to digital converters" + +config AD7746 + tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" + depends on I2C + help + Say yes here to build support for Analog Devices capacitive sensors. + (AD7745, AD7746, AD7747) Provides direct access via sysfs. + + To compile this driver as a module, choose M here: the + module will be called ad7746. + +endmenu diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/iio/cdc/ad7746.c similarity index 99% rename from drivers/staging/iio/cdc/ad7746.c rename to drivers/iio/cdc/ad7746.c index c1f76fc..23c9f61 100644 --- a/drivers/staging/iio/cdc/ad7746.c +++ b/drivers/iio/cdc/ad7746.c @@ -18,8 +18,8 @@ #include #include +#include -#include "ad7746.h" /* * AD7746 Register Definition diff --git a/drivers/staging/iio/cdc/Kconfig b/drivers/staging/iio/cdc/Kconfig index 80211df..a170ab3 100644 --- a/drivers/staging/iio/cdc/Kconfig +++ b/drivers/staging/iio/cdc/Kconfig @@ -23,14 +23,4 @@ config AD7152 To compile this driver as a module, choose M here: the module will be called ad7152. -config AD7746 - tristate "Analog Devices AD7745, AD7746 AD7747 capacitive sensor driver" - depends on I2C - help - Say yes here to build support for Analog Devices capacitive sensors. - (AD7745, AD7746, AD7747) Provides direct access via sysfs. - - To compile this driver as a module, choose M here: the - module will be called ad7746. - endmenu diff --git a/drivers/staging/iio/cdc/ad7746.h b/include/linux/iio/cdc/ad7746.h similarity index 88% rename from drivers/staging/iio/cdc/ad7746.h rename to include/linux/iio/cdc/ad7746.h index 2fbcee8..46ff25e 100644 --- a/drivers/staging/iio/cdc/ad7746.h +++ b/include/linux/iio/cdc/ad7746.h @@ -9,10 +9,6 @@ #ifndef IIO_CDC_AD7746_H_ #define IIO_CDC_AD7746_H_ -/* - * TODO: struct ad7746_platform_data needs to go into include/linux/iio - */ - struct ad7746_platform_data { unsigned char exclvl; /*Excitation Voltage Level */ bool exca_en; /* enables EXCA pin as the excitation output */ -- 2.7.4