Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp6293445imb; Fri, 8 Mar 2019 14:04:50 -0800 (PST) X-Google-Smtp-Source: APXvYqxJ1LKbmsI5HVBDndX3KQOlhJi0vyb+hfQ+qlUC1zDNUaV1M2U245SAck5jYpuNQ2s/Uje9 X-Received: by 2002:a65:664d:: with SMTP id z13mr18668881pgv.389.1552082690561; Fri, 08 Mar 2019 14:04:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552082690; cv=none; d=google.com; s=arc-20160816; b=NdV6PM3NK2ttgB7LFeX/2eBwti/N+3ldDPoISWqN1wZmxLC3aP8vxrPEEOxgM01GcI rk3QhywEAsfvziaLeRX+JqGQD5XrTTJoLgFWLVJOhHZTLVmGiT8k6+2CXvhirCIbuNcP Oq96fepPWjfpPERa+Ivm9mp5y1r9mKolGfDxy/Dj8i8OxA2Uxoq4Ae2MoillfbaXPifm 4cxC54lmNza6GdduqRP3oj+o7SCx3u4JqCt19QSOmk/sJvfzaFmsFdYJTVzQjJEfPIHJ tfoYKOKM3jNoCk+e5WW/f2scCefQ1XQ4rUGDwI/9P+jFp7UhOWERnpHVxfQk+dNeHObn Bv5w== 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=wbYb18iqZfYIC1a0eiL2xOa61ZYEtRD78qPBgvzXOhc=; b=ARCYn0IMVUB7xno092V326FBSdda5NvbrSRmldblwBGdokQqy0F19CRAVgQ2uYLoey qjXfFcZZ8WjZbgroKkPrzrwv3XGeCjeEIvVp89QMAs4EDa56eqA/SQb+LgnWzokn6DPZ j7ySA/ILLcqTZ6SJy1CqNjjZ9gnSfOFxAGeuvhdbBRJ1/blJMd1qnHxAFCQ38YFnNm6M toktPebe027GjqrpagZuy0BC7M6NpGvDodmmNQ1/T8ISPJe+Ny99LWmZJcy3BbqhwBfe O7i9oRyYZ8K7f2lz+cpQdI+GGCwVCBMLSpI/Y3kPq17RXBkfY38XHXZ2eu0cZaG/4vkX lVKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=V0gbUOHv; 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 k7si7785655plt.198.2019.03.08.14.04.35; Fri, 08 Mar 2019 14:04:50 -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=V0gbUOHv; 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 S1726436AbfCHWEL (ORCPT + 99 others); Fri, 8 Mar 2019 17:04:11 -0500 Received: from rnd-relay.smtp.broadcom.com ([192.19.229.170]:45330 "EHLO rnd-relay.smtp.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726286AbfCHWEL (ORCPT ); Fri, 8 Mar 2019 17:04:11 -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 8896130C05C; Fri, 8 Mar 2019 14:04:09 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 8896130C05C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1552082649; bh=owNO2Ve8fWSmHWTQi6svFa7siePzv1EjU4LMKyq1gSg=; h=From:To:Cc:Subject:Date:From; b=V0gbUOHvnx1yEE4WwMmrVrisBa39Mqga2eMp93XtYyGgCZRpRO5TwPb33vinOKor9 0DjWoqY+es+YRaEPRyEJheYMHXev+6M3uERQx+li9XkEyaWW8A7x49uw8QNY4pD63X PG5p3SWUB5mmP7SmjM1M7gAUX3NZea6MK3cJ9hQY= 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 9C76BAC071C; Fri, 8 Mar 2019 14:04:09 -0800 (PST) Received: by stbirv-lnx-2.igp.broadcom.net (Postfix, from userid 47169) id 87FED27FECD; Fri, 8 Mar 2019 14:04:09 -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 v5 0/2] iio: adc: ads7950: add gpio support Date: Fri, 8 Mar 2019 14:03:26 -0800 Message-Id: <1552082608-42603-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 v5 Fixed ordering of how things are initalized. Fixed incomplete cleanup on error. Fixed double mutex_unlock. 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