Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2590643ybz; Sun, 3 May 2020 04:43:57 -0700 (PDT) X-Google-Smtp-Source: APiQypKktN/veq7PZOfvpgkqRKbaWBQh2fSaww1uCe6HwnY/yfbsXq6nTxMRkxHMXasS9WLElv4/ X-Received: by 2002:a50:bb25:: with SMTP id y34mr10198514ede.237.1588506237154; Sun, 03 May 2020 04:43:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588506237; cv=none; d=google.com; s=arc-20160816; b=DZ5tlcNvwFya9MyylIczsnPVp73TDTikXOu/CFV844PyaxmrIMpgxQmmwpS+NLqyRd /zhRa0044EI0lTqijoJGf6g9gw/GNq8v2qa4G/xNic7wNCQGc37ypiliPNtphbrzIIyP 46yfJuORkvN6LX59Fr8ooHFXTGcTbaWaj4+VF607pbNuthdSybuOXmPUuVMRyXD97ryJ yGflxwHfhnwzhEIPfZbQJZvBIEBjhJrOTpzF0JbhNzhPsfyGqrM0HjcbOfiAXyQQkV+c KkiYyo7qPRBecbSVYQtsDFLuWPbp7zUHSLz/T0lazViz325/PfGd6Lrj95jnsEFtHxMi 4kPQ== 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=pLBFCsvGoJKfpP0AWgxw2i/v1O+QBt/RUrc7lSw6aOo=; b=FE94Zeu78A85HIrUMWbCiy7FoyxXjjCptm1gD15Wi5xco35YtCAhTxMV32L5M/fqIe on9ymBwtJKM/gdgzbJa+t2Ckqab6jZCSQPcYNEUAmd4TlPzDKtoArvSkDeE8KF0UPKRC vIDHh4IyNtUe8ZAVTC4U4RSEYjoHYrqGWJk7kF3xAwWFf/DDKQlfEysBsC5xylQpOhNd DHd9Uh2EhAzWbwXv7lyR+xVo/PKAirkdMBP1c2iiQB64q/EsP2HrEFu9TA96BxHXlzel 7LPXUIOCZn2o65qteH4LPS+E6ifwHVGWHNTUKtO8npqzRiDZXr1B24YDbQ5xzNbr81og jORA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NmRh3zxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cm13si4607095edb.48.2020.05.03.04.43.33; Sun, 03 May 2020 04:43:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NmRh3zxC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1727812AbgECLmQ (ORCPT + 99 others); Sun, 3 May 2020 07:42:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:39222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727023AbgECLmP (ORCPT ); Sun, 3 May 2020 07:42:15 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (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 4C8FB205ED; Sun, 3 May 2020 11:42:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588506135; bh=cJV6+Ip85K8eZlfSHfw7Jg5xJtOOcTfm2AIj0IoaByo=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NmRh3zxCTBSlXzH2Wve48cUWyleTnCms9h/zOVYJRbGeIOaH+UziEkUBrn9qZzBJW 786adg9qmXPRSJpZWw2hsjJWSYSh8RwBdZS9IaQ5sdlG/N4nx9r3mrzKu5jIz5dwLU pHT7YO4/iclXvBuKXYMtC19wije0c4azj9FBaUlM= Date: Sun, 3 May 2020 12:42:11 +0100 From: Jonathan Cameron To: Sergiu Cuciurean Cc: , , , Subject: Re: [PATCH] iio: adc: ad7768-1: Fix channel endian spec Message-ID: <20200503124211.41933e29@archlinux> In-Reply-To: <20200429104535.82988-1-sergiu.cuciurean@analog.com> References: <20200429104535.82988-1-sergiu.cuciurean@analog.com> X-Mailer: Claws Mail 3.17.5 (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, 29 Apr 2020 13:45:35 +0300 Sergiu Cuciurean wrote: > This change removes the endian description from the iio channel spec. > In this way, the default (IIO_CPU) endian will be used, matching the > be32_to_cpu() conversion from ad7768_spi_reg_read(). > > Fixes: 8a15c73a9bcfe ("iio: adc: Add AD7768-1 ADC basic support") > > Signed-off-by: Sergiu Cuciurean Hi Sergiu, The endian marking only applies to the push_to_buffers data. That is read from the hardware using spi_read, not the ad7768_spi_reg_read function. So logic above doesn't hold. Thanks, Jonathan > --- > drivers/iio/adc/ad7768-1.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/adc/ad7768-1.c b/drivers/iio/adc/ad7768-1.c > index a0027797a7fe..99da13c3511a 100644 > --- a/drivers/iio/adc/ad7768-1.c > +++ b/drivers/iio/adc/ad7768-1.c > @@ -144,7 +144,6 @@ static const struct iio_chan_spec ad7768_channels[] = { > .realbits = 24, > .storagebits = 32, > .shift = 8, > - .endianness = IIO_BE, > }, > }, > };