From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 187812C2AD3; Mon, 12 May 2025 18:09:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073341; cv=none; b=oEunwzNiNG62N/nuN9iEOLQF7qFPqBwBEqOng9zA6dWFBZPKX+4xMCeBCMQ/hMBPw2egBcUzM0WRI0oTz9vEqCshSj9FPWnarkjMBdBCb3AG7xTczuKZ37RKuidJZlzKwO2owZsT8Y8wHCs5AMnA66ze9NKcFSlRZlw5HNMQY9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747073341; c=relaxed/simple; bh=YYWHQFA+FKajkHsy5au7Gu5229SEsmKZRAptPmXr6UQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cSqi4wUhdHPupwELX/39aBHmXtICnSNoozjryTItpuJQG7sf7tITjKCoWokzwrbhgp9tdqbp77kjUqmcwpO0Ovw/qBAhAhKaLfd/5K5DvaK9dOGybrmQJBrN7obw5+eu7hW6Z6tgnylPqRx2o0Umktc7jroKXlPEOIxSm3jx4es= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LHM44uTS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LHM44uTS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92D1FC4CEE7; Mon, 12 May 2025 18:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1747073341; bh=YYWHQFA+FKajkHsy5au7Gu5229SEsmKZRAptPmXr6UQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LHM44uTS5ftQjgLGV8T4JGU7oRN1kbRSAhhLfaheFwbfb1bZp70W9XFXu8IUuhD3j e8nIckqn96E1MSP+3iVYQAdHWf1IMxaKsV7ugz+6FGsR1GnyQ/vW/0u6SKy3/ls1bV 1chDPXnivnG26ZXXAFB5nzcZ6X/F086Bj8YSzRBg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Gabriel Shahrouzi , Marcelo Schmitt , Jonathan Cameron Subject: [PATCH 6.6 044/113] iio: adis16201: Correct inclinometer channel resolution Date: Mon, 12 May 2025 19:45:33 +0200 Message-ID: <20250512172029.461222894@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250512172027.691520737@linuxfoundation.org> References: <20250512172027.691520737@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Gabriel Shahrouzi commit 609bc31eca06c7408e6860d8b46311ebe45c1fef upstream. The inclinometer channels were previously defined with 14 realbits. However, the ADIS16201 datasheet states the resolution for these output channels is 12 bits (Page 14, text description; Page 15, table 7). Correct the realbits value to 12 to accurately reflect the hardware. Fixes: f7fe1d1dd5a5 ("staging: iio: new adis16201 driver") Cc: stable@vger.kernel.org Signed-off-by: Gabriel Shahrouzi Reviewed-by: Marcelo Schmitt Link: https://patch.msgid.link/20250421131539.912966-1-gshahrouzi@gmail.com Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/accel/adis16201.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/iio/accel/adis16201.c +++ b/drivers/iio/accel/adis16201.c @@ -211,9 +211,9 @@ static const struct iio_chan_spec adis16 BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), ADIS_AUX_ADC_CHAN(ADIS16201_AUX_ADC_REG, ADIS16201_SCAN_AUX_ADC, 0, 12), ADIS_INCLI_CHAN(X, ADIS16201_XINCL_OUT_REG, ADIS16201_SCAN_INCLI_X, - BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), + BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 12), ADIS_INCLI_CHAN(Y, ADIS16201_YINCL_OUT_REG, ADIS16201_SCAN_INCLI_Y, - BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 14), + BIT(IIO_CHAN_INFO_CALIBBIAS), 0, 12), IIO_CHAN_SOFT_TIMESTAMP(7) };