Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2217999lqb; Mon, 27 May 2024 11:39:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWA7wXiIJ1rEoHV56lohdHXcne3yyvS1HtLJqC5yTDg4niscBBepcyx89O17e0QYwJLZRzlfPFf0rvlD5cWP47Yx/w73ubH9a9ZUrEZkQ== X-Google-Smtp-Source: AGHT+IExrBjqPzXLmA/eeL5lBlLlTZHAI0Yy7b1If85imY+rupXbfWH8Cjf/Sd5mPvenSs96ywjI X-Received: by 2002:a05:6358:9d87:b0:17e:8e7f:59f9 with SMTP id e5c5f4694b2df-197e5467a89mr980628055d.26.1716835160667; Mon, 27 May 2024 11:39:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716835160; cv=pass; d=google.com; s=arc-20160816; b=AMJK9AtTaKw6v3zbP3KI5d2N+Vnuq+2y6bX6VKG9Rj+ud7irVzZTqj0JYuWNeOAecW +qqlB9tsMY5QzAEfcIC3s47F38kZo+VmljeLfFObAt2vljN2P2TVHDJxYNg9J3hF5qX4 FqcQSUQnXYS/lW15dQ+XsHmy/MzEJjePC8nk/eVPLhm1GoJcOZtm9yDwxUaMVs+QOdCJ g/158gxgWnim8m+T7oXEL1uL6uEMil9DFZKmyJYekmPsF4kAjL1qHyAsgDjbrZ/tlqw2 rkuO8cVN5Y/v1JoGHimNgBt5BB51LLWAzfjeiLmzog+u6jm6ZXHo9df/gRY6tUvF6Clh 9u3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=+dGq+BBpr+rlxUS0WQliGQuIKZph55HlIZAdnOOG0UE=; fh=G48xy2EJ+iyX12aIjx8tJ+5Gat65UvCOISvNJ+vwgr0=; b=cmgIVKPeQkCLESHrI7TsBdBGIFXpVUWGQwuxXf9mgBB8mjk+M6vd5e/xls0r5AMil0 wl7oej6Bm0NSUcID+X2tpuPJT7ps8g0GQOzhOFDDuB+o4UDz36JU5wDWermprkvOBqGT PWk5GOTek3xBMeIsW/7E8ieuAnowtw1Ojjnran0WN+z4sk1W6Whp5puaJV2T2o/pPlgX tgJYIEeUXwAy7boY8MbAuvQ8EJ+9s9SFk1JEMXgG1U3Ra0xyzykkVoLkT20xxNJEtFg1 J2LHkMzY8ItcvHdO9/lTHvHjCsn/8O7HW0Am8uQ/9970kshKtTkQ/gXlo1PpufiNNX6O cNxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wd8cAiml; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779bd5dsi6854021a12.325.2024.05.27.11.39.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 11:39:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Wd8cAiml; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-191327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AB647B21BA2 for ; Mon, 27 May 2024 18:38:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8AE6415FD11; Mon, 27 May 2024 18:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Wd8cAiml" Received: from mail-lf1-f42.google.com (mail-lf1-f42.google.com [209.85.167.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DB2D15EFC2; Mon, 27 May 2024 18:38:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716835098; cv=none; b=oPiIhmJNv09l3jlNZgmahhE3mSE8A7alfaxWm9W+ONloCKo7r8a6hRGYvJkgj4QntcWEUpgtQUSXI9MToKZupPWFQp4DQFfV9f6j4TwKgtFcUVa/MN4e0YlVHwjCmUxTG8N1TWUiXI0i/wtkw5ciyQqWS59jkn9spoGs+KhqWMI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716835098; c=relaxed/simple; bh=Dljol5I7T/go7JkK7rwB5Fp4x25iV/GPuVNSd59Dbgk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NzdZRS0zzzVMoVPYyWXHg0tfeet7batk61K3K/M0wNLE5fgTCBjYDWmWxgj9oMuVxJ2fNK8p21TKHs1wOHuSmih7sbA5/zuGWgtogJfRug7gSBDtSeg8C04mbTikktb81G4kVM5DAMB5kyUm1AhLmo7H0HCMyk6IVSKpnsgh0n0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Wd8cAiml; arc=none smtp.client-ip=209.85.167.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-523b017a5c6so82355e87.1; Mon, 27 May 2024 11:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716835095; x=1717439895; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+dGq+BBpr+rlxUS0WQliGQuIKZph55HlIZAdnOOG0UE=; b=Wd8cAiml95tpFwcL5IxCAWceMiSMUGJ4ta5InHXwARhPS6psmtgoCWKQpX30odYHVs VmSFRfukvvXjm/gTE+57s6VgTeOIOTJK7iph0PZ25gH5p1Y/V6NDeVYCDohD5Vd1P1gs njEU5vk6k2bBdFHUmgT+H2WTmMsrXcu365y9F9vmalG3RUuwWHISQUIiwIQ/SFVc10Jq 17JkeT83KnSCYz9RFMxaPcsmZdesDB88xcbDUUUbH92jaCNGc4H8OdLYve6cedKH0m5T nLv9DZMYXvqxqqSr4b0AQWrB1XoLQrRzS5CJS772inlzJ3sPMK0N4Cm1y29oeIYCvsGf K/DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716835095; x=1717439895; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+dGq+BBpr+rlxUS0WQliGQuIKZph55HlIZAdnOOG0UE=; b=UIwTRWFVHXUsMPDzglyw/cq/rMI2G9skap5kPlKg3A9C/U3TdSbD+Oz0T5gxnPcop1 XDL6XLhoUC0fylaF4pgK2hu+rQA2mXPbKzl0hoenawSgQTc1sx68Fsm1nwsrmSz5vqdi EzepPMVFUWG5u7Ury6Pgir/YXz7vS8aTRgkIv2SK5bVxDHjKlrKC42Eqm4nZ+2RmWEZ8 aVuvwtiGapkrc/LAg7U7TbUdhRhA2cJLzRwq9O/9brbv6JlNOCkSM+mV2fJOJd+rXNeJ gVPDrLJ+ipU/hXKYd8gUJ8B6dcoLd4V3eCvLRZa9TLNnB0EYt8DEKAQYVCrsGCTCVxgb 8yxQ== X-Forwarded-Encrypted: i=1; AJvYcCVEESuLjGbBt+QEmOi/9EWlXVzPtvJodOLAIMBIyJBV+GGN4y6NL/sBCARQsM3LCmz4GAAtFVZUX63YegO+9wNpCz8wpUqdR3kOixKBvNHICze256J5E4upv0H4mNiJ3+SfiyD9k0no X-Gm-Message-State: AOJu0YzUDABX0joD1pH1UmGbVudWDRJlrZ36/nmS7ZENS3kjtlsu7AzB b6RaNIClccZzosYwsZ7FK5hGzMihGlx5T6WsXiUA7FsOao3Um2U5a58R0Q== X-Received: by 2002:ac2:456e:0:b0:518:9ce1:a5bb with SMTP id 2adb3069b0e04-5296736bbe6mr7172162e87.54.1716835095131; Mon, 27 May 2024 11:38:15 -0700 (PDT) Received: from localhost.localdomain ([2a04:ee41:82:7577:4b45:3774:6be0:a177]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc52398sm513825266b.105.2024.05.27.11.38.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 11:38:14 -0700 (PDT) From: Vasileios Amoiridis To: jic23@kernel.org, lars@metafoo.de Cc: himanshujha199640@gmail.com, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, Vasileios Amoiridis Subject: [PATCH v1 02/17] iio: chemical: bme680: Fix calibration data variable Date: Mon, 27 May 2024 20:37:50 +0200 Message-Id: <20240527183805.311501-3-vassilisamir@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240527183805.311501-1-vassilisamir@gmail.com> References: <20240527183805.311501-1-vassilisamir@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- drivers/iio/chemical/bme680_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme680_core.c index 2c40c13fe97a..812829841733 100644 --- 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; -- 2.25.1