Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1244857lqt; Sat, 20 Apr 2024 06:54:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGJ/7tgD0HH6TtdZMKkywA2qLyueFFBS/PIIKZxCMwladx2iDLC4Pr8VW4QPYPVb1HY1X+EdJTdyZRf5HVi7gTTzE8RYD4PESnUE3kOA== X-Google-Smtp-Source: AGHT+IGf0SeiV8W78Q7XSkUJzVdyd849z1AcSIYqof7jAJpYRMx1SWTXLMu2lokZUy8EKgZlb5DP X-Received: by 2002:a17:902:d486:b0:1e6:ac1:9437 with SMTP id c6-20020a170902d48600b001e60ac19437mr6278147plg.67.1713621298398; Sat, 20 Apr 2024 06:54:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713621298; cv=pass; d=google.com; s=arc-20160816; b=Px8GmicvWMBEVj1CiSKCPeT0coNvFaHqvl0dVX9cRFGBUexQHJlUSUfaCSNOVfyCam KiDgUeLH7WA33KfNsVJy9kNBInR7LxegSk1a9nqhFovI5PQevR6OQA+Y/oYb+mv4t+Ty lyj2vFcv7og573FGLZkpa4ftN0E2OeuwgFusKSazTW/ZCyE9l3I0UQ6/b1xb/GEwf3Ix TYPjHh60YkZ6+ca6L5zMs+tfMA7ZPs04/BpoypnDiAvPsO1qNJJk3b2mWgGloQEJAEZR PoYC3Lwg9HLcmPBVC7lEUWaII2Ob7p25SVu4R1Txo+mJLyTcylqZiDAgpmmoL9VbXJFr ZEKQ== 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=8SWSn/Vxn627dIpnOPk629xLk1xpjLydDgVlkuYsMxI=; fh=NxdilxSYI9c1PfQDrZwM+JveLteeGJExsgQaRDvkaNM=; b=LwBwcxNKT4bgMAFLkYjRKMUtKJ6pYHkvrz45WM8/V8ZACe3hgvcmY2IyhrtHBkOKsN e8sEDAGrJq4NGHWgh5U/UqIQQSYHRu6emAoYbLIpMCJNkWVdyJplA0V5oW6b0hJXlJMt 7xmSY5i6746aS3xOETFIL5B23gDU/aiSAUYWutVFKzIBXeGPUiuz59/BpXiYF43NbnFy tkF+LlwGoEHSjV20ra5nN+qLhzdYy3zKv3AFlZ2TtPikVc3u++tK11cxRxcJn77HKD2c kDGlHSweT/pv9H8u5rkLdtd++gDsE53fEtX2RimTwbvETRVjlJD0KyKnTh8rK3dLqKxy pryg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FdLv+alO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152283-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d15-20020a170902654f00b001e7d3e39b7esi4909879pln.34.2024.04.20.06.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 06:54:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FdLv+alO; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-152283-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152283-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6811FB20EB6 for ; Sat, 20 Apr 2024 13:54:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6058829CFA; Sat, 20 Apr 2024 13:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="FdLv+alO" 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 8415220326; Sat, 20 Apr 2024 13:54:13 +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=1713621253; cv=none; b=O5S2MmhDcHHQx5rqb5x1ziVUaibd5ew4hpRtfquNbz4MWVTOUX1kmgxrL/nJPXjuxN1zVC6nhJdHcbTNoLB0Wal3DHO6b+NLeeRlEhMnn626NSAY5Floa7L9AopxrA5Z0S4RZBoqNx9nEuHm2AhnjkB8uSzMWpACx6zn4/dSJYw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713621253; c=relaxed/simple; bh=16q168MlSLTeQaQ+4PyfDNW73mGocL4Qi8jMsgDul3k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mv7MXaLKzhk4rZWDjZ7RsJncAn6h4o+7q8YLz3+xUc21PUaJvkmPgktMCr+k3qA81vQkTNWZdqPahRZtxmVNNHPUDCdyM34rbxHxdvC5RgCMCtTJxwqJ0Sh0EsxpVC9+3erPy/1HUwirQyz/TJjFIAroGsyxrQ/xZWOchGtkG2E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=FdLv+alO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 008E4C072AA; Sat, 20 Apr 2024 13:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713621253; bh=16q168MlSLTeQaQ+4PyfDNW73mGocL4Qi8jMsgDul3k=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=FdLv+alOWl2XlQEJPcxOC/1KT+pXMyZgrbyD1h3wjyoC303QAeB3gKYHfpT6jIzKe zrYLy5h3gff0d3bjYMdN9rXWRNcyzG/0RTiffoKZwchGkjfx5qRSYWAbJ3L5eYsLNZ 5zh7YtA07YvYxu4Kk9hhOpizgodPGVVFWKyMFLwccuCoa1Zlqe4XAuUvSXoUNgIFph Y3QRnVK3KGRpq6tA0RepqImEGrsC0690GkwYOUqZpBgdaQNNZE0BunY4sF/Pley9Vu Sil2dPzzTQntd1a0BTBkijaVlJ7j45pSzGIbsMQQN4uKUOMvzsjJynx2p5Gj8DJuZH l6dt8A2yoQVAA== Date: Sat, 20 Apr 2024 14:54:00 +0100 From: Jonathan Cameron To: Thomas Haemmerle Cc: bsp-development.geo@leica-geosystems.com, Eddie James , Lars-Peter Clausen , Joel Stanley , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 0/4] iio: pressure: dps310: support negative temperature values Message-ID: <20240420145400.03793961@jic23-huawei> In-Reply-To: <20240415105030.1161770-1-thomas.haemmerle@leica-geosystems.com> References: <20240415105030.1161770-1-thomas.haemmerle@leica-geosystems.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; 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 Mon, 15 Apr 2024 12:50:26 +0200 Thomas Haemmerle wrote: > This patch set fixes the reading of negative temperatures (returned in > millidegree celsius). As this requires a change of the error handling > other functions are aligned with this. > In addition a small code simplification for reading the scale factors > for temperature and pressure is included. Series applied to the togreg branch of iio.git. Note I'll first push it out as testing to let the autobuilders see if they can find any problems before I make a mess of linux-next. Thanks, Jonathan > > --- > Changes in v2: > - include fixes tag > - Split up patch > - introduce variables for intermediate results in functions > - simplify scale factor reading > > Changes in v3: > - fix locking issues reported in https://lore.kernel.org/all/cbdafb33-fd3b-47ad-a678-83fa92475278@moroto.mountain/ > > Thomas Haemmerle (4): > iio: pressure: dps310: support negative temperature values > iio: pressure: dps310: introduce consistent error handling > iio: pressure: dps310: consistently check return value of > `regmap_read` > iio: pressure: dps310: simplify scale factor reading > > drivers/iio/pressure/dps310.c | 138 +++++++++++++++++++--------------- > 1 file changed, 77 insertions(+), 61 deletions(-) > > > base-commit: 0bbac3facb5d6cc0171c45c9873a2dc96bea9680 > -- > 2.34.1