Received: by 2002:a05:7412:9c07:b0:fa:6e18:a558 with SMTP id lr7csp288293rdb; Sat, 27 Jan 2024 06:41:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEXage0KkFHJdYxXnWviGeTt9EWScbiqdbvSsHzggcA8qfC4piLFjCAQrThGdqwl6JDzdgA X-Received: by 2002:adf:fc88:0:b0:33a:e4bf:989c with SMTP id g8-20020adffc88000000b0033ae4bf989cmr865792wrr.117.1706366479018; Sat, 27 Jan 2024 06:41:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706366479; cv=pass; d=google.com; s=arc-20160816; b=NMF2KH0acJRwYSN+VzIG0L2Pk6iOyvHxkWlpp1pWdpMBfwuym5aNp4Dth+YbclcjkB cG7m8qm/3039DWQGfCz++FHQ9IK3G8urmWBoItfShzTr+4J4RUYPaQjFVVec7c0CaPTE JDjdBfWBLLUYy+7yXbL9i2Y2wg6AU5+qR+8TxLNNig9dhvYyvEckak5xHxJw7WDcAAxi cWPtq6afhQHcDmr2L+u4PwGjN+bm19Rq7pKG2eZDCBWMtboszGZix6YlVnSJ5Yvvyfly xs3/YXgqDh3sCsCzsI99YnWFoUqbRQdAuGBNAD/WHYM4Vmn03w88CudFBaU2v2S8WflZ yJTQ== 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 :subject:cc:to:from:date:dkim-signature; bh=lAFq1e0m1u9VReT2fDwus/rkh1yUPOFvlDqd3+Ei6YY=; fh=J4z3Z87QNznWmorBDEcDItU/w8iEBuO3VaDawsNXoOU=; b=dpdj52pW6268BWysoBOCmMagt/rndr5iLaAJQorCJkd8wXl7HUDMFDjxsCA9V39n3X ML9t2byPXh4/W4AfT9cBiGoWXZXYZ5QQ/nI7eWQ5LsjELTx8YbKcVKNDbyJONXsvp/Re 18GWaTsNutBme4LWWXBXGK2Rylxe384U676zZB6iP1M4wpAU22UtMg4hsRbs+qi/rJ+0 r+pPL8jXKJjYvC35FwZ9lIvuAr4d7UkxSj5GwnoIRE3NyGlYdGtdCRSAw9jUkLj5qrKJ f56awHxaQEM0rid8t+jBD3s/jPZRvLQZ3yrL6pvKIaIHlGdH3X7Rrtik8X2fJs9PN9rZ skPQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZyQ7r8hm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id r12-20020aa7c14c000000b0055d05db6285si1720140edp.158.2024.01.27.06.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 06:41:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-41219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZyQ7r8hm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-41219-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-41219-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BF9721F22AFE for ; Sat, 27 Jan 2024 14:41:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFA722577E; Sat, 27 Jan 2024 14:41:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ZyQ7r8hm" 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 13E892563F; Sat, 27 Jan 2024 14:41:09 +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=1706366470; cv=none; b=LvP+IgMZFCLqBkU8Vbnxnbyks/CKTKu7D07avHIcIidem66v5446yBeXm7HjsmUHzdEFGyDHeLQ7rpc4QwqijyiwOJv8S5nu1izXzr4ulikVbkxahQ6RxzmsT19E1SJy3nBIHdXeXBkXIt3/ODAkorXoLqyM2oOHzO14/k9Fqls= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706366470; c=relaxed/simple; bh=dPSRqy8RtN+cIEqACSGMiHRGMly5SB33KCjhBJ4WK2M=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Sky56SnaNP7A1l8kcd/oOQT4ACTVjQsGhLxBnSSiWuaG7sUCIn51tt35nSyDSU7fENXBQMN9mehpUS0DeOhswU9WiIna6bmV4DtdkDyd0iOGmg8crf9KayyJCrwzsUCB6RpfUA8rGJ/XwjgJM835p3BZi5n/HdKjWSnFfm+jhuE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ZyQ7r8hm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 80E2DC433C7; Sat, 27 Jan 2024 14:41:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706366469; bh=dPSRqy8RtN+cIEqACSGMiHRGMly5SB33KCjhBJ4WK2M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZyQ7r8hmvv4oTnTw0kKT99IJodOgF2Nq54MAy0XdPOko6gBBznC2BC5N57lmaMnti UvT2AkH6rgnu9bOTMC2kgRDk6o8pVXT3JmXMlrxRZnkuxvAXiHwmF85hlVc9+1pBNe Q0EibKr1Wemm+fh/fEcOc3uPzZ7CZMYADM8dSZw3K++BrqPDTxL6FtZmdKQxEwaiJ1 ilHdkPNqN+8bTPu31qTJQV56shF2/mw85VN1iz2tUbRhAavs5fIUVTblkq1OcEIa76 lXSUdK7tXkg1twQWVO29LOilODWj3nNqEzydPIbS5TG9yGlDygFPrpdy0uiN3NiITz kOjKN3ANqyfsw== Date: Sat, 27 Jan 2024 14:40:55 +0000 From: Jonathan Cameron To: Dimitri Fedrau Cc: Nuno Sa , Javier Carrasco , Li peiyu <579lpy@gmail.com>, Lars-Peter Clausen , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] iio: humidity: hdc3020: fix temperature offset Message-ID: <20240127144055.2e46c77d@jic23-huawei> In-Reply-To: <20240126135226.3977904-1-dima.fedrau@gmail.com> References: <20240126135226.3977904-1-dima.fedrau@gmail.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 26 Jan 2024 14:52:26 +0100 Dimitri Fedrau wrote: > The temperature offset should be negative according to the datasheet. > Adding a minus to the existing offset results in correct temperature > calculations. > > Fixes: ("iio: humidity: Add driver for ti HDC302x humidity sensors") <> are not part of the fixes tag syntax. I guess you saw the one case of that which was in my tree earlier in the week and I've now fixed up? I've fixed it up here as well. Applied to the fixes-togreg branch of iio.git. Jonathan > Reviewed-by: Nuno Sa > Signed-off-by: Dimitri Fedrau > --- > Changes in V2: > - Added Fixes: tag > > drivers/iio/humidity/hdc3020.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/humidity/hdc3020.c b/drivers/iio/humidity/hdc3020.c > index 4e3311170725..ed70415512f6 100644 > --- a/drivers/iio/humidity/hdc3020.c > +++ b/drivers/iio/humidity/hdc3020.c > @@ -322,7 +322,7 @@ static int hdc3020_read_raw(struct iio_dev *indio_dev, > if (chan->type != IIO_TEMP) > return -EINVAL; > > - *val = 16852; > + *val = -16852; > return IIO_VAL_INT; > > default: