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 D9D1630EF8B; Wed, 25 Feb 2026 06:58:29 +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=1772002709; cv=none; b=IDrKiXSMDyc2dZ680kQ9nEt8q3On62xuBY7H5vda+G8A7Ywibg1DaWWGUFUu+0LiBh7mKc3bPW+XtCSMOJ8UrtZXXNIvX3hIzzCsbTvJ+9DE01IvqiiERe8olU0bJDBBFuaoxofYlMejj5K5QNMhuGcIINCIQaUzS6sZb5mQj90= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772002709; c=relaxed/simple; bh=dyp9/YIG2FHBausJbNDui8JSmOcG3YdaP/YFeT2bKc8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ccMnMeJkC2JcQF/jXgOQIZmGkheyTaxrMQNmL3pu2lQPHV83Yn+MBIELfqUyKEBCXvk5K5AXxXE1oF9tc4Vl7OzZxUfKK9+Y+Lcnn9j8K8ei09v0F5nlsEpQX9aOl4PD4/3CoN1Huq7cP3LYcSj9ZLMOT50DEGN3MOJW2bz4g2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xowSjY1D; 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="xowSjY1D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B313BC116D0; Wed, 25 Feb 2026 06:58:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1772002709; bh=dyp9/YIG2FHBausJbNDui8JSmOcG3YdaP/YFeT2bKc8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xowSjY1Dy0hHQbVFHP0D3LXgg0xvUBwKrIsZKSz6PdiHk0Mac5yItZfvsqAnRn/A2 5EwsV7Zd4eLLXIpR2Edi9jLybQbJMekq023/Ge5MGoGbMLQ5XWqAxf/3L29sfU9aT4 od0BLVeSm67CJDJ8AI5rmJzMical47LZostiyA4g= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Petre Rodan , Andy Shevchenko , Jonathan Cameron , Sasha Levin Subject: [PATCH 6.18 470/641] iio: pressure: mprls0025pa: fix scan_type struct Date: Tue, 24 Feb 2026 17:23:16 -0800 Message-ID: <20260225012359.901432555@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260225012348.915798704@linuxfoundation.org> References: <20260225012348.915798704@linuxfoundation.org> User-Agent: quilt/0.69 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.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Petre Rodan [ Upstream commit 8a228e036926f7e57421d750c3724e63f11b808a ] Fix the scan_type sign and realbits assignment. The pressure is a 24bit unsigned int between output_min and output_max. transfer function A: 10% to 90% of 2^24 transfer function B: 2.5% to 22.5% of 2^24 transfer function C: 20% to 80% of 2^24 [MPR_FUNCTION_A] = { .output_min = 1677722, .output_max = 15099494 } [MPR_FUNCTION_B] = { .output_min = 419430, .output_max = 3774874 } [MPR_FUNCTION_C] = { .output_min = 3355443, .output_max = 13421773 } Fixes: 713337d9143e ("iio: pressure: Honeywell mprls0025pa pressure sensor") Signed-off-by: Petre Rodan Reviewed-by: Andy Shevchenko Signed-off-by: Jonathan Cameron Signed-off-by: Sasha Levin --- drivers/iio/pressure/mprls0025pa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/pressure/mprls0025pa.c b/drivers/iio/pressure/mprls0025pa.c index 4b23f87a822b1..6ba45d4c16b30 100644 --- a/drivers/iio/pressure/mprls0025pa.c +++ b/drivers/iio/pressure/mprls0025pa.c @@ -160,8 +160,8 @@ static const struct iio_chan_spec mpr_channels[] = { BIT(IIO_CHAN_INFO_OFFSET), .scan_index = 0, .scan_type = { - .sign = 's', - .realbits = 32, + .sign = 'u', + .realbits = 24, .storagebits = 32, .endianness = IIO_CPU, }, -- 2.51.0