Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp474941ybz; Wed, 29 Apr 2020 03:47:25 -0700 (PDT) X-Google-Smtp-Source: APiQypIaT+8mv6ya5TmT2IQXxs+s/4M4PasymkIyl4+Pxf02pC6vZiTo/PeItscCIyadG5OXkCC3 X-Received: by 2002:a50:9dc9:: with SMTP id l9mr1826587edk.39.1588157245527; Wed, 29 Apr 2020 03:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588157245; cv=none; d=google.com; s=arc-20160816; b=Pu7IS/yIiNePC8q50OktVxpKQJ9qr8oiRgUO5Cjsv37e/ul87axAd39CzRFsXSWBXE abS4GmAfk6J0GC7IfRIcDeInr3qZULAM2gYMmqWNLk8/SgvRv2h0AqeyFiKtuS25/tPP iuuAKMAhsvbAS883nB9Er5orbp+OxNsMSQ+StOhNbZ13m7OE+7/I4xEICFFzN5T3FmQC GRIYIhWBeEb95uU0c5B9AAwFbKoaLe33gGlcYgL4IJzRpwfinjSwPYSFebdTr0sg/I4J 9z1Bvye0tChQuicSKgQDGhMaZUXcvo0rYyvBxd/NaQEUQD2wat07JPdqmJ2lCV3eGqf9 wDfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=ozbgO21PRjeiVtZIv73gf6K5dSvFU0QIpGZ7ocRxACM=; b=0xTZxQ8uQGPXL8xJd9HSl61fY6pl7NOld22O0cEwssXOJcYlIhL+N8djw8Y81f+tLV mGNGJCmMyUO2CMYE/Ge0OdlbtFyeRuNJA26j5vpoQvcMUOj540pD7poBkcTp1Q7Scuzf IvLjYg/ajHXLTtTNUgMJ2wmGDynhgoh7qhXgskRkdkgDbIu6wdgC4VzeHCKVHXgblSfe tFgOwEk7QiLydNIZ7bN+kh08C4ksXFL0Djjq6ymkwe3gciL9wm95Kqpf3Lq9Siu+jd2i KrQlF1ko4yZ58Un+RMSGpwZW1/6eP3Z7Ik9AxniZIublbaZQebdRO7czLCewdWjk9qsq siGA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si3153146edr.281.2020.04.29.03.47.02; Wed, 29 Apr 2020 03:47:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726689AbgD2Kpa (ORCPT + 99 others); Wed, 29 Apr 2020 06:45:30 -0400 Received: from mx0a-00128a01.pphosted.com ([148.163.135.77]:3078 "EHLO mx0a-00128a01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbgD2Kpa (ORCPT ); Wed, 29 Apr 2020 06:45:30 -0400 Received: from pps.filterd (m0167088.ppops.net [127.0.0.1]) by mx0a-00128a01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 03TAjQED032380; Wed, 29 Apr 2020 06:45:26 -0400 Received: from nwd2mta3.analog.com ([137.71.173.56]) by mx0a-00128a01.pphosted.com with ESMTP id 30pes2cuge-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 29 Apr 2020 06:45:26 -0400 Received: from ASHBMBX8.ad.analog.com (ashbmbx8.ad.analog.com [10.64.17.5]) by nwd2mta3.analog.com (8.14.7/8.14.7) with ESMTP id 03TAjPaH037238 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=FAIL); Wed, 29 Apr 2020 06:45:25 -0400 Received: from ASHBMBX8.ad.analog.com (10.64.17.5) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1779.2; Wed, 29 Apr 2020 06:45:24 -0400 Received: from zeus.spd.analog.com (10.64.82.11) by ASHBMBX8.ad.analog.com (10.64.17.5) with Microsoft SMTP Server id 15.1.1779.2 via Frontend Transport; Wed, 29 Apr 2020 06:45:23 -0400 Received: from localhost.localdomain ([10.48.65.12]) by zeus.spd.analog.com (8.15.1/8.15.1) with ESMTP id 03TAjHYR018374; Wed, 29 Apr 2020 06:45:18 -0400 From: Sergiu Cuciurean To: , , CC: , , Sergiu Cuciurean Subject: [PATCH] iio: adc: ad7768-1: Fix channel endian spec Date: Wed, 29 Apr 2020 13:45:35 +0300 Message-ID: <20200429104535.82988-1-sergiu.cuciurean@analog.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-ADIRoutedOnPrem: True X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-29_04:2020-04-29,2020-04-29 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 spamscore=0 mlxscore=0 suspectscore=0 bulkscore=0 phishscore=0 priorityscore=1501 clxscore=1011 malwarescore=0 impostorscore=0 lowpriorityscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004290090 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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, }, }, }; -- 2.17.1