Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1545538imu; Sun, 16 Dec 2018 03:21:05 -0800 (PST) X-Google-Smtp-Source: AFSGD/WF9OPeIvT8fMiCL28K/il/crVT7cUv/KkEH0QJ+9Wc4xXxyQxgBqsyYx4JXII8iabQfYYY X-Received: by 2002:a17:902:1682:: with SMTP id h2mr9133468plh.243.1544959265653; Sun, 16 Dec 2018 03:21:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544959265; cv=none; d=google.com; s=arc-20160816; b=rL3N4C40XQ3/BZBMDV2EFfxAr/7Z+ggpxYA56nL1TRRKuXoFn31f/d2hldumGpmHUt GbgOPSijR1I1ogil8JxSZuyPYljZgib+HSrzSd4L+FoGSaKKAC30KYSDxRrOXsemx3Vz Us388gLA/PgrfuYf7MC4/BDC66G5o+r2eVmmsT8a+QCvPpjVo7C6bI7QU5fWlQY7iSPT p52/V5TQrytbxMfdM5PiSKx5a24fLqAve1iK3O1RGMt6PfAOakPt1Hv6RLscxQsCE/wv de3Mhm+QafWf6SvSqpspgh9NYzyRefi2h2dRWlDV75K0HEL5yjZEW1FH2sSfHsTQgN1P iLjg== 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:subject:cc:to:from:date :dkim-signature; bh=IhCBn5Jkym8svB6nZhVSfd4CcX5SNrecTGe+wQl6H4E=; b=RfCQ7W77wmiiien8CJULp6Nc7UhZgiafVCciXF35+a64xp9Lp0+3BMhW50vqbsrKVj mQzRncubMVeQwx0fp1HwRCwAX/EAfrR+JHdK0Bv3DwfmYQy61CwB7ZYoA8ACBbfTt8s7 aXMKD/H7qCPncb1e4ieGPZPesYEmmecyTCVz+DkE4ze3b/ec/VraEsv0LedCbm/gv3kG 7YJm3VkiN6dbB0bTCzMs+djMpizQZFDxSGxwSSgxPwZaGte8ETwT+TjctXxR9dWWj26s Og5PXGg9ie87FnphUkNoOb2PR4F4Z2NRaLDM4wfmj/L0Sg/p+F31FttnFMkcl6oVb43H 4OBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZHimcCWV; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si8115998plq.371.2018.12.16.03.20.47; Sun, 16 Dec 2018 03:21:05 -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=@kernel.org header.s=default header.b=ZHimcCWV; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730266AbeLPLTR (ORCPT + 99 others); Sun, 16 Dec 2018 06:19:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:42256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729821AbeLPLTQ (ORCPT ); Sun, 16 Dec 2018 06:19:16 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67388217FA; Sun, 16 Dec 2018 11:19:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544959156; bh=yxRw3KTplIiiwFXbygJ3CU7wmNQ9uT5AznvadSmYd7E=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZHimcCWVO/IVFUDkdpmgaVBfO1kDbZYuIG7dFhG44SQ5Z9OSKCLm6PR5n1VXMMhpR GeeuBloZnhqLS8sL9vo0wAbWuoDRTEvAoal9kEk1+7OKEIX+gDMvnFrIxlupU5Oc1J FuSb6ejtHF1cO77B6A0eKjhzB1Itz69xeGMTYJ9o= Date: Sun, 16 Dec 2018 11:19:11 +0000 From: Jonathan Cameron To: Jeremy Fertic Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/11] staging: iio: adt7316: fix register and bit definitions Message-ID: <20181216111911.149d466b@archlinux> In-Reply-To: <20181212005503.28054-2-jeremyfertic@gmail.com> References: <20181212005503.28054-1-jeremyfertic@gmail.com> <20181212005503.28054-2-jeremyfertic@gmail.com> X-Mailer: Claws Mail 3.17.2 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Dec 2018 17:54:53 -0700 Jeremy Fertic wrote: > Change two register addresses and one bit definition to match the > datasheet. > > Signed-off-by: Jeremy Fertic One comment inline. I added a fixes tag but also a note saying I would not suggest backporting to stable. There are too many things wrong with this driver for any backports to really be worthwhile. It didn't work at all for i2c until last cycle for example! Jonathan > --- > drivers/staging/iio/addac/adt7316.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/iio/addac/adt7316.c b/drivers/staging/iio/addac/adt7316.c > index dc93e85808e0..1fa4a4c2b4f3 100644 > --- a/drivers/staging/iio/addac/adt7316.c > +++ b/drivers/staging/iio/addac/adt7316.c > @@ -59,8 +59,8 @@ > #define ADT7316_CONFIG1 0x18 > #define ADT7316_CONFIG2 0x19 > #define ADT7316_CONFIG3 0x1A > -#define ADT7316_LDAC_CONFIG 0x1B > -#define ADT7316_DAC_CONFIG 0x1C > +#define ADT7316_DAC_CONFIG 0x1B > +#define ADT7316_LDAC_CONFIG 0x1C > #define ADT7316_INT_MASK1 0x1D > #define ADT7316_INT_MASK2 0x1E > #define ADT7316_IN_TEMP_OFFSET 0x1F > @@ -117,7 +117,7 @@ > */ > #define ADT7316_ADCLK_22_5 0x1 > #define ADT7316_DA_HIGH_RESOLUTION 0x2 > -#define ADT7316_DA_EN_VIA_DAC_LDCA 0x4 > +#define ADT7316_DA_EN_VIA_DAC_LDCA 0x8 This looks to be called LDAC not LDCA? Different error so I don't mind that being fixed later! Jonathan > #define ADT7516_AIN_IN_VREF 0x10 > #define ADT7316_EN_IN_TEMP_PROP_DACA 0x20 > #define ADT7316_EN_EX_TEMP_PROP_DACB 0x40