From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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=-6.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, 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 C7F9EC32757 for ; Wed, 14 Aug 2019 17:03:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F93D2084D for ; Wed, 14 Aug 2019 17:03:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802190; bh=6K1pZaqhlCYLETUu0L6vQfLqj8yj0kpEznabffwYKXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=fMxX4IB9e1cjT1e8Ko7iRLcP0H3xQVeux4JO1gy86cM8PmjMMA6Knk9A80FJNaWll 18+8W2LuRM3WX8R3MA4x5chbsZcLsFeHlh6LpRG4RuA6Tt5vq5Sr182xwaTtxS7Nik OgoxpTyoGlmib1CJifnz0cY3aOeYl7u+W1TltrBw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728858AbfHNRDJ (ORCPT ); Wed, 14 Aug 2019 13:03:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:51666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728829AbfHNRDH (ORCPT ); Wed, 14 Aug 2019 13:03:07 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 45A6D208C2; Wed, 14 Aug 2019 17:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565802186; bh=6K1pZaqhlCYLETUu0L6vQfLqj8yj0kpEznabffwYKXo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Di3uVsof1YRxsTb9qKshj/LaSfN99mi/iFNtxepWdccdAggouQDKcqdwtB7oID+n3 tzzy5gqDTuXcm9Jh3Re+ZQ2pMDCkGi7QiAZKknU5bhYQf2teXXcWZWtyUSLE+c2OJN 4FCKphb3CDmcveod7viNgVKc43+TkRQqU/yTLndI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Gwendal Grignou , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.2 003/144] iio: cros_ec_accel_legacy: Fix incorrect channel setting Date: Wed, 14 Aug 2019 18:59:19 +0200 Message-Id: <20190814165759.616580469@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190814165759.466811854@linuxfoundation.org> References: <20190814165759.466811854@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gwendal Grignou commit 6cdff99c9f7d7d28b87cf05dd464f7c7736332ae upstream. INFO_SCALE is set both for each channel and all channels. iio is using all channel setting, so the error was not user visible. Signed-off-by: Gwendal Grignou Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/cros_ec_accel_legacy.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/iio/accel/cros_ec_accel_legacy.c +++ b/drivers/iio/accel/cros_ec_accel_legacy.c @@ -319,7 +319,6 @@ static const struct iio_chan_spec_ext_in .modified = 1, \ .info_mask_separate = \ BIT(IIO_CHAN_INFO_RAW) | \ - BIT(IIO_CHAN_INFO_SCALE) | \ BIT(IIO_CHAN_INFO_CALIBBIAS), \ .info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SCALE), \ .ext_info = cros_ec_accel_legacy_ext_info, \