Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp131705imc; Fri, 15 Mar 2019 19:14:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqygJujFvbASBqmt3h3kR4v0+HhPlreXtwhSzf31kBTClphBTQSdcwg0hS8X8XAgTMPa7loK X-Received: by 2002:a63:9246:: with SMTP id s6mr6412605pgn.349.1552702489722; Fri, 15 Mar 2019 19:14:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552702489; cv=none; d=google.com; s=arc-20160816; b=OgFPfWgq7f/BKMZdsThV5MFrcexeznqXjLPQtGz+HlrC348cQ2ciKLE492YiINYNFk LSmJXsSFwzOsU/0K+/6JnHM/PggODE4eNO4NLU7H5rVhmN4inkSlNhxUIqjzGouXgEYn hP1ka93qMj0EUNXjkUWD7M7ZafvwFmBCSaE7xZlLIL/8G8hSYwMUynoRyjFwkRziCHWx GwvzqxPOrhBRAJFiRl61qfJWbFI8CTs1lREzep8FnFUfS0qmitnKjJZWCEsrRjnbicDB qyr9GrwBCcC2Ig8V5hxIJKd6Dh1pxs1l/YnQVyyLXGyC+psJ8qDtnpCNnnHHZdEvSOPr pMhw== 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:dkim-signature; bh=tjeKEKBJwHhgYiPZjRw0Blr1fFyox223oRj9UfoRK4o=; b=nSjn5lvVUOTbJSbCIEPAZ0mOzZl6jqcVzjHINBoHrGnDU0748ix5t32Fuor1mo7k5A JaWkF4FvsqrXnEU+R+Sa3Ii3inwwImdvYAbdbacNJXweQI8X1evVuqyAkw4g9BZAYW1+ gZAt8iZuds9AktTjnKzNfAEFDYXaHWFOm7LEY/2fSb8P5U4+QcEhUJWMNzdtsmUxxQnm M3u0g0JOMKBTovbI9ABPhqYjkjidXPrJ2PbWiWF7GP9SIReyF56ZKYibMvrMWhMVtLU6 tUiAp//bPNkRZVW4k5qc2uYZpAzjrt4pOOEEvjvX/TmioCiSq+fUzocjhe6vZU9uJhfL EoJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SVnaeziy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x17si3367453pgg.431.2019.03.15.19.14.34; Fri, 15 Mar 2019 19:14:49 -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=@gmail.com header.s=20161025 header.b=SVnaeziy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726953AbfCPCLF (ORCPT + 99 others); Fri, 15 Mar 2019 22:11:05 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42089 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfCPCLF (ORCPT ); Fri, 15 Mar 2019 22:11:05 -0400 Received: by mail-qk1-f196.google.com with SMTP id b74so6682523qkg.9; Fri, 15 Mar 2019 19:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=tjeKEKBJwHhgYiPZjRw0Blr1fFyox223oRj9UfoRK4o=; b=SVnaeziyQUGhvqQdfiK9ldbscvraUd1tQliL2XSHpCIMgpNbwMIRJIHgYY9/5r+5Ep eYDBX6rvRSUU9+uPBt6A0ujh4kWcm0unhYxUpuLXVe+cczXs0JJiaqEmJnCPEf+K9sAd +T5nk1ZJz9GcnxLEqbOyK67H7aY+Yllv9E/H8Q5v3cbRnrnhYkvYqVxUux6ClnHRfDAG 2I1NBZ+pprPHPo06QxFRCd022RBSWShDU8ZhSzB81AwZZbMxFfDGalcgKBYzO9FImQ8u HkQwOUUqPf2SmWM7sE+yCSKE6rFcnTkhcoqxVrLXpzdNztyHasqw4r+Wh4kVQ0x7Ud9y roXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=tjeKEKBJwHhgYiPZjRw0Blr1fFyox223oRj9UfoRK4o=; b=EUOt+5N2sMEQMrVCDkeDtejRM3OZMugidjsdgT/Zm+6LEdgvBTB61OL5/rRz4xP9xn 69wumAx73Eyi9x+rIhRljaPfH5tHgFQKkYBDJtqPL8uwLSl2JVlD75wZBOz4wNm3+lcK Xs5/Le8GzMzvp56AVECYXqWa/ZUibBkJf/rNGIBAnoiBDN4jM94wAOu4ZS6Ez3v+e2FE cJis57wOwFe8bIrl1W+0tP8m0203N5wQB9thC8bvYIHCzhB5oJ3tqNsC+wn1vqApvdtO dmBFYRHnWRUj6eL8CdB5Sy/kOYEfkS9mCW3DTMEotarJvDed/XxYZBEZaF3t63LtTXcd eH3w== X-Gm-Message-State: APjAAAWoZBFdtKD8L9x/GoAJje/ygxYyndyFlw/ctYqMfboF9gPiDVlj 4+RCtA1f+GnRGBWdLa0pTmE= X-Received: by 2002:a37:a246:: with SMTP id l67mr4882876qke.237.1552702264410; Fri, 15 Mar 2019 19:11:04 -0700 (PDT) Received: from renatolg ([186.220.21.102]) by smtp.gmail.com with ESMTPSA id j64sm2800919qkf.13.2019.03.15.19.11.00 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 19:11:03 -0700 (PDT) Date: Fri, 15 Mar 2019 23:10:58 -0300 From: Renato Lui Geh To: lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, knaack.h@gmx.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, stefan.popa@analog.com, alexandru.Ardelean@analog.com, giuliano.belinassi@usp.br, robh+dt@kernel.org, mark.rutland@arm.com Cc: linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-usp@googlegroups.com, devicetree@vger.kernel.org Subject: [PATCH v5 00/11] staging: iio: ad7780: move out of staging Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series of patches contains the following: - Adds user input for the 'gain' and 'filter' GPIO pins for the ad778x family chips; - Missing switch default case tidy up; - Gain reading for the ad778x; - Filter reading for the ad778x; - Sets pattern macro values and mask for PATTERN status bits; - Adds ID values for the ad7170, ad7171, ad7780 and ad7781 for ID status bits checking; - Moves regulator initialization to after GPIO init to maintain consistency between probe and remove; - Copyright edits, adding SPDX identifier and new copyright holder; - Moves the ad7780 driver out of staging to the mainline; - Adds device tree binding for the ad7780 driver. Renato Lui Geh (11): staging: iio: ad7780: add gain & filter gpio support staging: iio: ad7780: add missing switch default case staging: iio: ad7780: add gain reading to ad778x staging: iio: ad7780: add filter reading to ad778x staging: iio: ad7780: set pattern values and masks directly staging:iio:ad7780: add chip ID values and mask staging: iio: ad7780: move regulator to after GPIO init staging: iio: ad7780: add SPDX identifier staging: iio: ad7780: add new copyright holder staging: iio: ad7780: moving ad7780 out of staging staging: iio: ad7780: add device tree binding Changelog: *v3 - SPDX and regulator init as patches - Renamed filter to odr and ad778x_filter to ad778x_odr_avail - Removed unnecessary regulator disabling - Removed unnecessary AD_SD_CHANNEL macro - Changed unsigned int to unsigned long long to avoid overflow *v4 - Split gain & filter patch into two, with the new commit adding only filter reading - Changed pattern values to direct values, and added pattern mask - Added ID values and mask - Added new copyright holder - Added device tree binding to the ad7780 driver *v5 - Tidy ups - Gain reading split from "gain & filter gpio support" commit to its own separate patch - ad778x_odr_avail moved to more appropriate patch - Init GPIOs in a separate function - Raise error when ad717x tries to perform a write operation .../bindings/iio/adc/adi,ad7780.txt | 48 +++ drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7780.c | 376 ++++++++++++++++++ drivers/staging/iio/adc/Kconfig | 13 - drivers/staging/iio/adc/Makefile | 1 - drivers/staging/iio/adc/ad7780.c | 277 ------------- 7 files changed, 437 insertions(+), 291 deletions(-) create mode 100644 Documentation/devicetree/bindings/iio/adc/adi,ad7780.txt create mode 100644 drivers/iio/adc/ad7780.c delete mode 100644 drivers/staging/iio/adc/ad7780.c -- 2.21.0