Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp704752imp; Wed, 20 Feb 2019 07:36:42 -0800 (PST) X-Google-Smtp-Source: AHgI3IauIa495HOFqw+vwLoEaFDHnm8GYNFr2EWvDAT4WbwPSalf3fOwwwqNEE/LIe4XTcyM4PN0 X-Received: by 2002:a65:6642:: with SMTP id z2mr23056286pgv.196.1550677002548; Wed, 20 Feb 2019 07:36:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550677002; cv=none; d=google.com; s=arc-20160816; b=0zF3/AqzMuPJeniu7d0z58hlChQHZRgs9dI8ASA4KLVRc6C7yK7Xa8AvtS8x+MdOnB wqSfEo1cr+OmQ1/HL/1jEnfnqyhnb8SqmF13t4kSJKl6OCnFfCx6TW71KZdkJcWDsHr2 Xg/ztHM/XvzQFqmuyUeJWV3H7bsPAid0bS2ADkEMu4ysYggDKMHjWamUAZPr+XTeIz1K FBhYor9QejwHULndBLaRBYFWQH1iaPTaNdprtVoyUo+7u6KEmTZfNSuVy1EF1tS190/t 9FvKSNCkDR+DmxgwjJ9BOudsNagm+7gXa0MmVeEXuG6zO3ltoG13R9rcKd4fCKts9ZbO UWIg== 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=lrKASQS1WGrjd6rd/Zc9CzznKlzqkYONRIJWH0fgQjE=; b=tGzYiAaNmRZW08CkF0WV5nqq2qjHbG+VieRhTgZsgxr87OUHPUqa6JzNC51LmtiMcq UyY1HoI6eQNgcNGMmewUFiQzn5lGlHySpaSFzQcpos1Ryboo/8jioIWfKVQRLmEd6b1s WHJUtZ8z/vrpi7OsfhfEOCgyhKnz+0nvBzik1dZdFJbhQnZsffwpUzHiiB/8bglyVhXQ 6rKzQE7Vu3lUafT4FUbaIsOCssCeN5vTK3cKz0lfM3xfkvhdjE2+tl8DnClNrjsyo/2c XqH3ZaetKctxT4QV4vD1R1gcJ8yCSR/lZJIQgt0NkLV8XIm9rKzWB8apnT1AdYlN50+m P1/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pO+1bruc; 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 u77si20953204pfj.139.2019.02.20.07.36.20; Wed, 20 Feb 2019 07:36:42 -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=pO+1bruc; 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 S1726486AbfBTPfI (ORCPT + 99 others); Wed, 20 Feb 2019 10:35:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:50504 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725836AbfBTPfH (ORCPT ); Wed, 20 Feb 2019 10:35:07 -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 863BB2084F; Wed, 20 Feb 2019 15:35:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1550676907; bh=+Aoj9Da2eXF3fDgmxkSjt8Q8Xf9yjX4rzfYUxCafbTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pO+1bructOEz3NmzI9cA4Vc49LqL0tXC8Xt+7IF5Be+1VmPgRuLI8altmELzi/ppX iQGl3REOrVq+azCyJSF/X4kBMn5E5NvRhqi/R/mt8Nzgnougib4LsvkjBWnYZ5Z8LZ inWWgvSA3Eg3JyUJ1pN+iqkEKd3tZ10awXXbS/uE= Date: Wed, 20 Feb 2019 15:35:01 +0000 From: Jonathan Cameron To: Mircea Caprioru Cc: , , , , Subject: Re: [PATCH] staging: iio: ad7192: Fix ad7193 channel address Message-ID: <20190220153501.4fed22c0@archlinux> In-Reply-To: <20190220110820.25580-1-mircea.caprioru@analog.com> References: <20190220110820.25580-1-mircea.caprioru@analog.com> X-Mailer: Claws Mail 3.17.3 (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 Wed, 20 Feb 2019 13:08:20 +0200 Mircea Caprioru wrote: > This patch fixes the differential channels addresses for the ad7193. > > Signed-off-by: Mircea Caprioru Hi This is an impressively confusing datasheet, but I agree with the fix. Applied to the fixes-togreg branch of iio.git. Thanks, Jonathan > --- > drivers/staging/iio/adc/ad7192.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/staging/iio/adc/ad7192.c b/drivers/staging/iio/adc/ad7192.c > index acdbc07fd259..2fc8bc22b57b 100644 > --- a/drivers/staging/iio/adc/ad7192.c > +++ b/drivers/staging/iio/adc/ad7192.c > @@ -109,10 +109,10 @@ > #define AD7192_CH_AIN3 BIT(6) /* AIN3 - AINCOM */ > #define AD7192_CH_AIN4 BIT(7) /* AIN4 - AINCOM */ > > -#define AD7193_CH_AIN1P_AIN2M 0x000 /* AIN1(+) - AIN2(-) */ > -#define AD7193_CH_AIN3P_AIN4M 0x001 /* AIN3(+) - AIN4(-) */ > -#define AD7193_CH_AIN5P_AIN6M 0x002 /* AIN5(+) - AIN6(-) */ > -#define AD7193_CH_AIN7P_AIN8M 0x004 /* AIN7(+) - AIN8(-) */ > +#define AD7193_CH_AIN1P_AIN2M 0x001 /* AIN1(+) - AIN2(-) */ > +#define AD7193_CH_AIN3P_AIN4M 0x002 /* AIN3(+) - AIN4(-) */ > +#define AD7193_CH_AIN5P_AIN6M 0x004 /* AIN5(+) - AIN6(-) */ > +#define AD7193_CH_AIN7P_AIN8M 0x008 /* AIN7(+) - AIN8(-) */ > #define AD7193_CH_TEMP 0x100 /* Temp senseor */ > #define AD7193_CH_AIN2P_AIN2M 0x200 /* AIN2(+) - AIN2(-) */ > #define AD7193_CH_AIN1 0x401 /* AIN1 - AINCOM */