Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp38558imb; Thu, 28 Feb 2019 15:15:46 -0800 (PST) X-Google-Smtp-Source: APXvYqzCC4plDtxoquPN2rVSj//QrSHjUTJ1mDTfsMqFKDA5rwW/2zqTF469rPZsu9QuUBfCrUcv X-Received: by 2002:a63:4e1a:: with SMTP id c26mr1671342pgb.175.1551395745998; Thu, 28 Feb 2019 15:15:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551395745; cv=none; d=google.com; s=arc-20160816; b=Li0ksFw+NoDDApubmg1mu7dG021WvM02n+HiFZhfnyiCXZOy621EaKlu58zT2qdPgs ooQt8NEqVw9g0ayEfUV2dnq2thpQNxdqfb+QrTI0HVB4Jnjq+qbWMWrSHHVG6FlOOxy3 iwEs2FpOJWG/I+Piq6+lQoC68xW7NvYuNjUA+zBJnwGz3H7as12qgojs9SP7FpUxhryK fxEyBloy3juWVgJYPRviIApyOCvGFvdNom6VTvdxGsPPqeV42yuCCxmGi4J6sHjR9paE 0KCG2tKdawI6CU8hrE7El8RkwVz6qv61SHg+wr57H61rpMCSY/XEepV9Ko7NWxXImOWY RwCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=q3E1x4XXFpo0zArSiw8wdmz9ujJk08fAcromXb/4n34=; b=gaQoqek8bSnANdd+liHZ00qIUn/PSvq2QbzoDTAYhg9YWVneMeUCREn8tdoDkYzAQ3 yVLA5dnrWRHKAZDO0+T4mJ3yFeHCmjCxMiTL1PAPbEYTqFlRNleSl0kdY8m/WwbD8cnL mO14+Qd3KxQ2i/YDcaw2MFS5SiF5b4Ea94r6GKwkLNWpCgHpX3xFSJ4tIMTZLeY0OGN4 mf00CpZpR5dqKJ0WzmG2EzgboahuQMgLyNfbLUBARFxfE2JyOXw+niRDloyKhMe8APuG Ex4IBRukCIfE0hvnekaDlgAEVoF6NcuCVUe50CZhXb751rw3oo2gPfPe1Q/JrnSBRNb8 mUiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=o2tTkXWP; 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=fail (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 1si19326159pla.155.2019.02.28.15.15.30; Thu, 28 Feb 2019 15:15:45 -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=@broadcom.com header.s=dkimrelay header.b=o2tTkXWP; 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=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728618AbfB1WRp (ORCPT + 99 others); Thu, 28 Feb 2019 17:17:45 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:54696 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfB1WRp (ORCPT ); Thu, 28 Feb 2019 17:17:45 -0500 Received: from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net [10.75.144.136]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 374F130C041; Thu, 28 Feb 2019 14:17:43 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 374F130C041 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1551392263; bh=CCd6yypswlM4xGV+ZzfyYO6YjL4Q5DmUlzfNaCiLAP4=; h=From:To:Cc:Subject:Date:From; b=o2tTkXWPKHcxvhyoHNoKG2buOo0iUTrb+h8Emlj/0JVl7jsSsXAwS6iu9M9BH3qoq ECYxiJM+Bu1a4mxl0YK6WGf8iS23+E9CK9XAjljKwNx2vErfZwC+MT27LcT7O5gIm2 vYK2dVS+VaAoafT9TbQJ4zCOouJNTxo77Aui47e0= Received: from stbirv-lnx-2.igp.broadcom.net (stbirv-lnx-2.igp.broadcom.net [10.67.48.34]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id 87943AC0761; Thu, 28 Feb 2019 14:17:43 -0800 (PST) Received: by stbirv-lnx-2.igp.broadcom.net (Postfix, from userid 47169) id 79D1727ECE7; Thu, 28 Feb 2019 14:17:43 -0800 (PST) From: justinpopo6@gmail.com To: linux-iio@vger.kernel.org Cc: linux-gpio@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, f.fainelli@gmail.com, bgolaszewski@baylibre.com, linus.walleij@linaro.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-kernel@vger.kernel.org, Justin Chen Subject: [PATCH v4 0/2] iio: adc: ads7950: add gpio support Date: Thu, 28 Feb 2019 14:16:47 -0800 Message-Id: <1551392209-20004-1-git-send-email-justinpopo6@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Justin Chen Add GPIO support for ads7950. v4 Split patch into two commits. Refractored code to capture the state of the adc instead of only the GPIOs. Added comments to clarify the intend of the code. Fix improper use of mlock. Justin Chen (2): iio: adc: ti-ads7950: Fix improper use of mlock iio: adc: ti-ads7950: add GPIO support drivers/iio/adc/ti-ads7950.c | 219 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 209 insertions(+), 10 deletions(-) -- 2.7.4