Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1857948rdb; Sat, 10 Feb 2024 23:57:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUSR3vsPDHbWMzFvfB3xqmeLDlDaMTTGUuexb27vC12zfAMcRvnYG59ScOrQsv8H8npWV9wVjM99ge7qDiik3/tdsY55oo1zc/T2XWccw== X-Google-Smtp-Source: AGHT+IHqoQNN4rRQh9K3BzlrnfmbUk54xyuCzNOGDF0WGscQSeIRED7I3F5KQmilGxnzTRWXEbDH X-Received: by 2002:a17:906:553:b0:a3c:5145:6283 with SMTP id k19-20020a170906055300b00a3c51456283mr1430145eja.69.1707638247013; Sat, 10 Feb 2024 23:57:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707638247; cv=pass; d=google.com; s=arc-20160816; b=lwJJCqVk2fUtskqmQQ3tnbeOwkP6x7g7f5uFNxwj+3HEZ6JykgZ/vWkJG4bpfNl5n+ YrkL+iJQ4W7Q+38i51EFopRFBpqNDAEPT5xdCBStqLutyMTooVaW6IcSbi795f2/o9w9 2l/CTpizmE2mKm6rPjcVywUoGDGG0KRdh54NoGfwn4v6DVHwXi4hH9XD3bKItzThVhYi XGyZnff0ax+1/85JvDNLe/btvDBoveNhjt8LkGO72ypnUROZ/WIj/usRIWZ/IXdhbx/a /ueZtdKZRY9Vq/uuRM229YR8KD9JDwB5EommK/b28CBR7GKjvjZDhzr0Jm3IGFuQ8v8+ AltQ== 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=Iu845mBHaexmxnaJEvR47TH9vD1Zj6e3FfKmgF/MQxU=; fh=gda24Ojte1WIcoS60Z00ef2FMIUFCeKfYYEvkhjG70g=; b=EshewTuA1ovU9MC0vPMXswpBMpnib/ni4Xm6eYZqLMyJg7L/xlUp7vPCRAfhV7EOHN SigSZk/A1Cz71NkilgM3BDEcY/jcrLIbcFBLigc9Dv1aXDXJAWV7QBKrrsU4WomA8opT LhBEEgAb5/jp3DN76EapueVQfkXd+5Y1Ng6DxnuuUFhuOfnlv9e5KO35htFsO64AhVqD 6oGN+kmukmJ1F8fKxJNNYmBWunqkHQzeU75DUvVmJyDZLOZ9bktNw7b3+T0P357ojc9G OduKaOq3xhFbA23qraX5s92cDRYz5+3G4nhYsiZSXYpXyI+0AV/h2wbtNEJgdlH6auLi F7Gw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@subdimension.ro header.s=skycaves header.b=AXuAnsP4; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-60648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60648-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWuwG5zeF01tI4P1boKN+1LxyhQVAFDb8NNpZKwrDg+3Wzzwq4QJXEW2qoTqkFAvqpbKGfDtYPQcZEwNoM2IzCfhcDBJF2ioce1nx6pxg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id n4-20020a170906b30400b00a38a0206c0esi2705603ejz.633.2024.02.10.23.57.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 23:57:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60648-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=@subdimension.ro header.s=skycaves header.b=AXuAnsP4; arc=pass (i=1 spf=pass spfdomain=subdimension.ro dkim=pass dkdomain=subdimension.ro); spf=pass (google.com: domain of linux-kernel+bounces-60648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60648-linux.lists.archive=gmail.com@vger.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 2977A1F22A6C for ; Sun, 11 Feb 2024 07:57:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E5DD94596F; Sun, 11 Feb 2024 07:56:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b="AXuAnsP4" Received: from mail.subdimension.ro (skycaves.subdimension.ro [172.104.132.142]) (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 448644437A; Sun, 11 Feb 2024 07:56:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=172.104.132.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707638218; cv=none; b=AZnOR3gdz1fwAXhDmKfM0ZBoWQvWT82BtTHQnaI3IMu4PLT3vxqyxWi1pm/ETkqfL0Q5WZyA/ABt/8v2fRbg9rlKsKk8QQ4qo8zmBKmTNdVEk1E5yevypbdrD9K3QzhCHfK2lCSwI5lzs/ZdN9dQbi6QrERlXusBCYM94Jpt/WI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707638218; c=relaxed/simple; bh=6AKgtrBfCsel99oJPCAdmr2PiW5gpjpbUluGKeTb9f0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pfSSvt9k3yzgYiWs2G7sORxdFhk1Yml9RdpiUbIhjN9D8nZpetg6zDFW5f2bKbzvs6kQKIle5ZIP2s2+Xb5iFaBXH9BSrU3VcnnBrUw7HZLgrmKN/+CAJIeI2jcHyvtq+ljIvCNpfKs4Lfe+rg8is1NZDxjaCQr447P6wvlw9OU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro; spf=pass smtp.mailfrom=subdimension.ro; dkim=pass (1024-bit key) header.d=subdimension.ro header.i=@subdimension.ro header.b=AXuAnsP4; arc=none smtp.client-ip=172.104.132.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=subdimension.ro Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=subdimension.ro Received: from localhost.localdomain (unknown [188.24.101.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mail.subdimension.ro (Postfix) with ESMTPSA id 1CD4A327B85; Sun, 11 Feb 2024 07:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdimension.ro; s=skycaves; t=1707638209; bh=6AKgtrBfCsel99oJPCAdmr2PiW5gpjpbUluGKeTb9f0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AXuAnsP4jq5ARLjpnPbunCokwUwWzvPk4NpkL3xoiCmBoyZp1ihKkzLFUbz8Wq5Qx eFFjZIvYlPx4WdcR/45b2vYQKUwPfUg9A1qoRjyKbh1B6Hv2R4C8sI6ab83uFNTZ5N EdE7nQSpdadKuU1HRuAcfr51RsWwZlbEbHDjNfXY= From: Petre Rodan To: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Petre Rodan , Jonathan Cameron , Lars-Peter Clausen Subject: [PATCH v3 2/6] iio: pressure: hsc030pa: use signed type to hold div_64() result Date: Sun, 11 Feb 2024 09:56:33 +0200 Message-ID: <20240211075645.28777-3-petre.rodan@subdimension.ro> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240211075645.28777-1-petre.rodan@subdimension.ro> References: <20240211075645.28777-1-petre.rodan@subdimension.ro> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use signed type to variable holding the result given by div_s64(). Signed-off-by: Petre Rodan --- v1 -> v2 no changes v2 -> v3 split cleanup patch into 3 parts, no code changes drivers/iio/pressure/hsc030pa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/pressure/hsc030pa.c b/drivers/iio/pressure/hsc030pa.c index d6a51f0c335f..7e3f74d53b47 100644 --- a/drivers/iio/pressure/hsc030pa.c +++ b/drivers/iio/pressure/hsc030pa.c @@ -406,7 +406,7 @@ int hsc_common_probe(struct device *dev, hsc_recv_fn recv) struct hsc_data *hsc; struct iio_dev *indio_dev; const char *triplet; - u64 tmp; + s64 tmp; int ret; indio_dev = devm_iio_device_alloc(dev, sizeof(*hsc)); -- 2.43.0