Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp630935iog; Mon, 13 Jun 2022 09:30:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzaFjASBCP3Rq7HUbI2PaOCx//Q4RTUNbADvZV74xA8T6mVK1JPMYWEzeMnjSTVYLPtXtUw X-Received: by 2002:a63:d244:0:b0:405:34ac:920b with SMTP id t4-20020a63d244000000b0040534ac920bmr342564pgi.503.1655137810726; Mon, 13 Jun 2022 09:30:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655137810; cv=none; d=google.com; s=arc-20160816; b=sFQ6PFu+Fdds/9UTjWhzkDXQRyBnJ4Wx4nAbotd8qqWhihmmICURglUPvPCoI7fgZh cjOO6ej8mRUTSyxg0SBo8VaWA3UvjisNncmJRKagSd8uDFktvMyrrJ1NPnJEJ81NGD76 /5R8p7XfuDZiOCwjJDQdjiHl0zi+t2kvmGL6+hh1HPt+i/DNVUt6lopk0l1YdqOgA0Rl StbA7Koccm4qvnuhPdLkQDi3lkhigGRbiRdwmp5qo3Mudj37sKuYIHZE2bL5GC7ZME95 4Mo7U7jyfvEovZhUPlLT3/J+1BpgkJea/lqfopS/QwoOuDT650H9+LhUekI86+uXPwZk Sakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sLb8W6dhI2yrafylB9Q7cZ14SuJHKT2BxJo4dnTlELQ=; b=uPl0DUOM2IiJb5oIf2HRrvPEuV+5Mv/JmT8uDd1MgnHeHvHsD+Df/6Bz8k3z6zq6Js YL3BiJ63ISPK51MvokJ08ya4eukP0qoiSFsqSMvfBjNql+Lo4ro5C4Mk2grqXy94SehR XmTT3dinqolt1jGtdMVpEm+ew0LegWN1bwNHrTFsjobEYnq+2GdUrsxGUDnu0D4O6Hyj r4lODA/uD9yjYgGw/7fhY76QqDw21nemhE25LA184s9raeKXWrBmvp9Mfei0hmkekMbk jwQTIMHKs+yRCNKhnYSGzkESdFdfw2qg18eYaxP5BrClih+vUe5V2GQpl0ENutRtA9XA tkXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zFfalB4H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a170902ce8c00b00153b2d165b0si11854393plg.440.2022.06.13.09.29.56; Mon, 13 Jun 2022 09:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zFfalB4H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354822AbiFMLfu (ORCPT + 99 others); Mon, 13 Jun 2022 07:35:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354472AbiFML3g (ORCPT ); Mon, 13 Jun 2022 07:29:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62B2BDF28; Mon, 13 Jun 2022 03:44:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 150D6B80D3A; Mon, 13 Jun 2022 10:44:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F811C34114; Mon, 13 Jun 2022 10:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655117088; bh=A2kOf+YUalMSyW3ba6LpRQec2UkZUl6itbbNZD+h3Uk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zFfalB4HttQShkXy9PQDeimxn2g1MPrfztG7sLAIHhZEBeRAFHNTdRAHreLSuWkce 8A2OiKIaHVMLIsqawYCoPNVwNpkPk1nE8/OcNpvIfoFjP6jUb/xakLKbGDUHudwte8 7ZwKCUv49UD5RQzcET03eiVRNf509vRm8357dX50= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Alexandru Tachici , Jonathan Cameron , Sasha Levin Subject: [PATCH 5.4 283/411] iio: adc: ad7124: Remove shift from scan_type Date: Mon, 13 Jun 2022 12:09:16 +0200 Message-Id: <20220613094937.243746057@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094928.482772422@linuxfoundation.org> References: <20220613094928.482772422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alexandru Tachici [ Upstream commit fe78ccf79b0e29fd6d8dc2e2c3b0dbeda4ce3ad8 ] The 24 bits data is stored in 32 bits in BE. There is no need to shift it. This confuses user-space apps. Fixes: b3af341bbd966 ("iio: adc: Add ad7124 support") Signed-off-by: Alexandru Tachici Link: https://lore.kernel.org/r/20220322105029.86389-2-alexandru.tachici@analog.com Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- drivers/iio/adc/ad7124.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/adc/ad7124.c b/drivers/iio/adc/ad7124.c index 635cc1e7b123..793a803919c5 100644 --- a/drivers/iio/adc/ad7124.c +++ b/drivers/iio/adc/ad7124.c @@ -142,7 +142,6 @@ static const struct iio_chan_spec ad7124_channel_template = { .sign = 'u', .realbits = 24, .storagebits = 32, - .shift = 8, .endianness = IIO_BE, }, }; -- 2.35.1