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 683151946A0; Wed, 3 Jul 2024 10:58:35 +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=1720004315; cv=none; b=g8xNbhuYLv2ldn83jq1zzzVxYBbEBVZjfP+X11bc4R9tbbBhA9czvP/9+KTR3BTrvGaqt3wJOuXOY5vehYX3U0lOVEhVUNmCMjvuXwVFAt/fY7I1iVPs+0Q+WXWADDiaXghPAktjUXK+fWuVoP9PjNiVV3K5Rx8e634c/JVQaaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720004315; c=relaxed/simple; bh=/0S+0oFK3ndjpainvaKqONZtNwDHjQjGGkHem+le3EU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=joCcroS/RLWYtKuu9znVTjPK7lOenAPDHcRLujYJ5xP7QUJm7u4UXV/Acst75hWNAEyMT0hkTgGWUjW+3K0OTifhHPHUlwONQDJ88PyMQXAkJzHHBJ3fcrCYeDLOXfVPda26R7SPkWncGN8+DF4Ng6/EE5KoP2P0z8kpxTqgQhs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MuUPAeMs; 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="MuUPAeMs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E04F5C32781; Wed, 3 Jul 2024 10:58:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1720004315; bh=/0S+0oFK3ndjpainvaKqONZtNwDHjQjGGkHem+le3EU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MuUPAeMspUzX+IR19yFxPgpZ2swY1czd/uBPSwYcKrZJNwCRtKM7lgtsT9UHXNDYI dXENedx7oL7rerANMX17gNu0FDLB/GxenbOBP94qPfLd1wRpYfoqXjdoly7XK9tBuP KkdWnMTZBY2h2tN/xwGdXkOtCCQbTphG/LwJIlDE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Vasileios Amoiridis , Stable@vger.kernel.org, Jonathan Cameron Subject: [PATCH 5.4 162/189] iio: chemical: bme680: Fix calibration data variable Date: Wed, 3 Jul 2024 12:40:23 +0200 Message-ID: <20240703102847.583785011@linuxfoundation.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240703102841.492044697@linuxfoundation.org> References: <20240703102841.492044697@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasileios Amoiridis commit b47c0fee73a810c4503c4a94ea34858a1d865bba upstream. According to the BME68x Sensor API [1], the h6 calibration data variable should be an unsigned integer of size 8. [1]: https://github.com/boschsensortec/BME68x_SensorAPI/blob/v4.4.8/bme68x_defs.h#L789 Fixes: 1b3bd8592780 ("iio: chemical: Add support for Bosch BME680 sensor") Signed-off-by: Vasileios Amoiridis Link: https://lore.kernel.org/r/20240606212313.207550-3-vassilisamir@gmail.com Cc: Signed-off-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- drivers/iio/chemical/bme680_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/iio/chemical/bme680_core.c +++ b/drivers/iio/chemical/bme680_core.c @@ -38,7 +38,7 @@ struct bme680_calib { s8 par_h3; s8 par_h4; s8 par_h5; - s8 par_h6; + u8 par_h6; s8 par_h7; s8 par_gh1; s16 par_gh2;