Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp821065img; Thu, 28 Feb 2019 08:22:31 -0800 (PST) X-Google-Smtp-Source: APXvYqxQib9i0GfKDysflCU1X1XEz08k3C2iMy8qm7KdWhnclsJC9FEJJF1sAS+Ck+51ZL9fUyU/ X-Received: by 2002:a17:902:e192:: with SMTP id cd18mr146839plb.309.1551370950985; Thu, 28 Feb 2019 08:22:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551370950; cv=none; d=google.com; s=arc-20160816; b=SVxvCTDoTLHqFTJb6DF5+q+ULs3G6+MIy1hqEtNXmienAnFuLYJKWaPJC+vgJJt27F xCYIQLBbur1nrdjtjdJTFoCyaU9kFxEkI2nqHAcmWje6KCk2mO9WXFV2f3bGP2oWCZbx 2eWGhbQPLZQ/VKfFK1CGepsnrBEUbILlhi/Hk5OKPed508PNYdlt+QryY+4QroVtfFjP IUfnBbkw0PwMhCFjiO8rMtq8Yne6TQr+lb08nGCLE9pBxABXadIxHH9Nm5iBlPpKjkEZ Z8FKaSGOD8Yxt9pJG9EHKZh0uPE3A1ZCtS2SMhjoaBBgv/SdmwaY/TKlOGjNu+rsFy0U OD5Q== 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=jFGfRyvX1Bua5dA9/UwdF9ZZoYKBJTBkCX2r3CP1LEA=; b=LpFkcDJbmM12ideP2LSlJPvAEbJeT/vdEyJAO55gijHuyafq2ERaCB+M+w+3s/imXR jRnEyobF+5sxVvLBOAuG3+zG3gki0b7wdoIZwKIt05Dc2FBJazW4BAIRqFZL4jqLm3WC x/Vvqm7uxrZ7/c3RHLzc225Lp7t7xH/RZ1qNSAKSffccGBESfPYFFkyZVvWB7VjkgcYH 1fWqyY2Y0QBN3I9XmHHXzmfI/5GAur2ulkIl/aQSS3LY8DrV6IhN4cXFkis9Q1fiB7F7 LuNtv+8M43CZQG0GYB6susMygxlmbO7lOcxzJU9SpSf5bilasFtQLTFiTzT3bs4R1ix6 a01Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HrKVlRXS; 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 c24si18190519pgj.502.2019.02.28.08.22.14; Thu, 28 Feb 2019 08:22:30 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HrKVlRXS; 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 S1732632AbfB1OXJ (ORCPT + 99 others); Thu, 28 Feb 2019 09:23:09 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:38819 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727789AbfB1OXI (ORCPT ); Thu, 28 Feb 2019 09:23:08 -0500 Received: by mail-qt1-f193.google.com with SMTP id s1so23645659qte.5; Thu, 28 Feb 2019 06:23:07 -0800 (PST) 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=jFGfRyvX1Bua5dA9/UwdF9ZZoYKBJTBkCX2r3CP1LEA=; b=HrKVlRXS3AqGEYQwU+jaPRc6FeAEefhnW/hneOgZc+v6MnTS6rF9wJld1A4vVSaFMU 3Tf7EEv2ymHrce/qX9y0erpnm3O09jjV1zu2e7C/DT36toSFUEc0JdlqT9ztNlz73Km5 cElEEYTt+k1p2DtO+TTXFTQLs7SB76E7+Sw1z4Gd1lGzFPblkKMYv3nvbFf6cOheod5h YNtfketsO1HR1zG4i6g7LTcgcJ08F7vWb7Qn/jfXMGbtxT5WUg/O2ML+cqkRrH/qxwdZ GOQ7xKSRzuJ5IRbSaFgH9gVtLolTnuiiajX0qEiAw3720PWgBrcNUjjc8MHyUURHOfdK z/1g== 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=jFGfRyvX1Bua5dA9/UwdF9ZZoYKBJTBkCX2r3CP1LEA=; b=lEzOC4jduI45o4+t4//dIDr49Z5qGMAAaH+xjtqOO1YixfIZ3uFdMaLJEGx/yyPk+L yJgcsxK/KVpnA1yqM9pRxJKJpW6VnUsE9HGuXCdyljZ19wObwhuQOp4YWeqhy0zzj6cv N3Sca75DjQ315QB4FZiFKUYNDpiye+mgLuhZvGQdS5iySdX8rHKFDFIBcmUr18IGV5hh W7qk9fxjnjd5xdfA8SgFv+FWLW4Jv5QRdKIp0Ez7aIwZP9erfRlZbjAILgIvUc84YHNJ 2minpqE3MG1rvblE2NToL4y2PgkaTXCcs4elJQlXeaYdP/Unei6Ccp5fU/D/yM0/qAic gFvA== X-Gm-Message-State: AHQUAubf7adGrouOimjmGIHcDN9hgYwMPv1SAYuxto/cz1Z6mXN63C98 EIUlgSrX6c/icvT8Y6hZUBc= X-Received: by 2002:ac8:581:: with SMTP id a1mr6537526qth.168.1551363786986; Thu, 28 Feb 2019 06:23:06 -0800 (PST) Received: from renatolg ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id a43sm2378556qtk.86.2019.02.28.06.23.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Feb 2019 06:23:06 -0800 (PST) Date: Thu, 28 Feb 2019 11:23:00 -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 v4 0/9] 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; - 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 (9): staging: iio: ad7780: add gain & filter gpio support 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 .../bindings/iio/adc/adi,ad7780.txt | 48 +++ drivers/iio/adc/Kconfig | 12 + drivers/iio/adc/Makefile | 1 + drivers/iio/adc/ad7780.c | 365 ++++++++++++++++++ drivers/staging/iio/adc/Kconfig | 13 - drivers/staging/iio/adc/Makefile | 1 - drivers/staging/iio/adc/ad7780.c | 277 ------------- 7 files changed, 426 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