Message ID | 20210314181511.531414-18-jic23@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-iio-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 532FAC4332B for <linux-iio@archiver.kernel.org>; Sun, 14 Mar 2021 18:18:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2D99E64EC3 for <linux-iio@archiver.kernel.org>; Sun, 14 Mar 2021 18:18:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233985AbhCNSST (ORCPT <rfc822;linux-iio@archiver.kernel.org>); Sun, 14 Mar 2021 14:18:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:45238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233995AbhCNSR5 (ORCPT <rfc822;linux-iio@vger.kernel.org>); Sun, 14 Mar 2021 14:17:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6106164EE3; Sun, 14 Mar 2021 18:17:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615745876; bh=w1XgIupIXsB9J+6Tum2u2vW2nJwexDTG3dvAq+yJGF4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HXouJmGSGVWm1mpxokLeLZlYNepMh18msZVOgLf/RvYOxOWsnt8Pz4TF6uZmiVybC JruQZ4Noj5+MZL9GgRDieS5s40i98urbFTmsBeapnv8JXcefuj78SI6OC7AKlK60QD ODnIZZVYduZPAAWXDtZurYJs4ROyJEaS8ngWd73Gq9GQuFjdHkpH6ih2e0d70SS6+P wbvr1vdMMzKL/wTAOhWqgVOGNtaD4Pc61HYAv1t3zNhdCnprMaSOBo2O1jNV31GrXH v4Cf0it3qb838EO7HHTGrvuCExiYi/SIgQD96TdYhtb7ROcAZKytu6rH5NdjkQL0gn UIG3gqnuydT1g== From: Jonathan Cameron <jic23@kernel.org> To: linux-iio@vger.kernel.org Cc: Lars-Peter Clausen <lars@metafoo.de>, Michael Hennerich <Michael.Hennerich@analog.com>, Alexandru Ardelean <aardelean@deviqon.com>, Robh+dt@kernel.org, Alexandru Ardelean <ardeleanalex@gmail.com>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Alexandru Ardelean <alexandru.ardelean@analog.com> Subject: [PATCH v2 17/24] staging:iio:cdc:ad7150: Shift the _raw readings by 4 bits. Date: Sun, 14 Mar 2021 18:15:04 +0000 Message-Id: <20210314181511.531414-18-jic23@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210314181511.531414-1-jic23@kernel.org> References: <20210314181511.531414-1-jic23@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-iio.vger.kernel.org> X-Mailing-List: linux-iio@vger.kernel.org |
Series |
staging:iio:cdc:ad7150: cleanup / fixup / graduate
|
expand
|
diff --git a/drivers/staging/iio/cdc/ad7150.c b/drivers/staging/iio/cdc/ad7150.c index 67af39f80650..1a041396ff9e 100644 --- a/drivers/staging/iio/cdc/ad7150.c +++ b/drivers/staging/iio/cdc/ad7150.c @@ -111,7 +111,7 @@ static int ad7150_read_raw(struct iio_dev *indio_dev, ad7150_addresses[channel][0]); if (ret < 0) return ret; - *val = ret; + *val = ret >> 4; return IIO_VAL_INT; case IIO_CHAN_INFO_AVERAGE_RAW: