Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1883893lqb; Mon, 27 May 2024 00:02:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUQnpLZsBQ2wzcncMvCqBdK5sZfXJxkw0raMW8oAWZ0BZ+HmwR4r9r+iyVvbOGiuLmOPDZAtd7WurumT9WlJeAynEokPYmhum0OYy57hw== X-Google-Smtp-Source: AGHT+IEciRJbIE1Ey1QNjfgzOu0j+Wzv+o1Q4vjiv63BGXF5CGxAA6Wtlj+T7HO3s6U+R5TfdaeF X-Received: by 2002:a05:620a:4621:b0:792:c30a:ba1 with SMTP id af79cd13be357-794ab0f7316mr1049034085a.57.1716793358310; Mon, 27 May 2024 00:02:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716793358; cv=pass; d=google.com; s=arc-20160816; b=AHJdB+0ePFOgQptnCUeRqxQD2eBDrKMBPhpXyjc3B4FgBSLAzyWgZdB5xZ2dGCf8Lv n3Y8bRNeTRaUGuMvrf5i7FSyKcNWufNHqlrqy1pLhblj6OplLPZp8DRvZ1H3iOLMhumx jbsl8qKzNUlRSw30zKGxCXnX2iu5ZIKe62qNEnZQtd+anqNS0zO7NUgygaYjAE9EQazv gGVzvYR37ABLYlfHg/jcdS3UxYPaWIswBonUtV55+NoiAVU1j0dhbXsynJZVFfsuh/nk ggoeui5oRq8MTlOEvfU/qllNRMEXu3bgiT5XDpqHxnCZ1I8yC9OwWb2ZcXemiFwCg3m2 v0Bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=HDVkgZOBY2Ju7MirHdefJO2Dq3agcHKAwL90ZDsI39g=; fh=PIplfT9x6DfjRRJsPXn1B2eZrQi66dS/ULnijkaTofQ=; b=Cqr3NZMudRAjZec6WIPnSNy3CnhJRRmIhhLOp7IbGywc+FMsU++hDtXdUCV32zG5L7 qF6AGjuM/2+XaiPITMiTZb2KY/GHU8+X5uSGFtLcZmV7sa13YCgByv/xc6L4zmnWFQY9 heBzf9EY5f4qW5qqHlAwulLUSws8ZyRGM2Q+m1PX1AM+WzdiUevLlLcjfJcOHoevtP92 DXYcpW7Vy1pDbViDoO/NquikVJ2+Jqop6O8ukE3M1MrH3dJGlZcxlmDEBly977gsZMrv aRzyYNjoIv2a3MF7o3gFu0tzMLQa8EbkzlPXAa3dXIDrTvL4UGq7rQB34C6Y7XIDxf03 WWWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A1Mdf7No; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd5c77csi719691985a.696.2024.05.27.00.02.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 00:02:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A1Mdf7No; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-190115-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190115-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id F32971C20D23 for ; Mon, 27 May 2024 07:02:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8844122301; Mon, 27 May 2024 07:02:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="A1Mdf7No" Received: from mail-ed1-f54.google.com (mail-ed1-f54.google.com [209.85.208.54]) (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 23A141BC3C for ; Mon, 27 May 2024 07:02:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716793336; cv=none; b=Nfk9ys8HHUeIYyx7T9aOOtHkufHpv1TwL6YcWjaPbnZjEXaNECwD7UMVXeKYHiyWmdNtAl4UawA2gf+7FuHOgqJnvSoGtz3XXJ5K3LcQOljN5n4/QV72/tPwYp+u3ez9JxmMlme3fWgMmAqDIpJ0kYeEGLUut4erHCpnmHGXhvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716793336; c=relaxed/simple; bh=ajmuBU8NEYgZvZcyeXhACXwISAspaNIqOJpgLEmIEJg=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=A8uoOootTn4QsSNwhm0WAT/6DveOGBuVf8hJWadZ2h3IcxIYyC4svhq34OYqA4wYnaVsTJozTTG49XUYgHwic2w0QXQkJqbn4MgFcwn8jnjgErTkjZAX5rxUmZ1YehafcsiWPg8Yh9rRoTxc9BG0pUERxyzjw/VY71s2z4CTXVo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=A1Mdf7No; arc=none smtp.client-ip=209.85.208.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-578972defb3so1782011a12.2 for ; Mon, 27 May 2024 00:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716793333; x=1717398133; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=HDVkgZOBY2Ju7MirHdefJO2Dq3agcHKAwL90ZDsI39g=; b=A1Mdf7Novp/NQP1Soc0zF6QcdpeMtaSWnjBfAeQbCKjVrrH0nP0ZvkoJDJGZqzgKmC WGEkl8l8DZdZAuS2eiQ2s4WcVQJy6rT9+yKUpWl0otcLkvQKKgcGuX4qoXz2Rf/3xjgq 3t5SCPw+IZPR9px4ZbQDNEfnme6H3YA/Bu8a575jFMJcKSk3I3sLqvpGOiQsNEu1+pOj VzoxN7tvjLsP1ZQJRgd2tJybdhXJ+ogS30SGdxx3IcWNYbiWVk9Lz8hkr3KWcpyrhw2e AwuuWjjJxd4AnkLdjbB0me0oJ16Mfg/JCDQdR7xcivL6C4Sktfjz/FjLzHGc8iokvpy5 5ePQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716793333; x=1717398133; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :references:cc:to:from:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HDVkgZOBY2Ju7MirHdefJO2Dq3agcHKAwL90ZDsI39g=; b=BUOHdsmBND8EIbNXnZeDiJ0LyhwW/eKpnNTMYhAwEfNNwspP/OG535SqMFra6OVJET VRCmRDDu30qDPYqR38bIPzMbu7qcLYV8nxov2DP3YueIgPNcQyerk7Tb7mnrxrgUfkCQ aNevjERMSjFmWOL9d9On68i3bVOqOCGq62xt12yfL2TPVhB/9LaHI6M1IQoVRuwpBcBJ YMNWDVfzxBqZHEUDhgE7lQ+eW7XJN44jNOCAFZgi7F/d5MyJ5RKs/Igq1P4vMrK3ITo8 1NvE5hIsEaBamqJq6n1cTSSfmE4xb2+wmIqxyrSG1m2SU2I/8B/iHW4koLIUwjw1XjX5 3mcQ== X-Forwarded-Encrypted: i=1; AJvYcCWJnXKqJUv0C9fNDN4S1ZZFedX4sKG/NHXM0SWAyLlROYKLFx3prGpsUUioYfJx1c6l0mtX3dTyTy3k7/ZG7asAUBZmCxskXJJw0Qxm X-Gm-Message-State: AOJu0YyR7mcqdyhxYgJNzS4ndKckcLrKUGCETQeUb6FJFBYVAw1aclv+ or6Zdyiw8PKuwP3yfZZZj0XgbtLVISha6YEyGkoqUDb2MvYN2nbkXV82DMg2OqM= X-Received: by 2002:a17:906:a082:b0:a5a:15b6:25ab with SMTP id a640c23a62f3a-a6264f16065mr542470366b.61.1716793333016; Mon, 27 May 2024 00:02:13 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626c936facsm458543666b.49.2024.05.27.00.02.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 00:02:12 -0700 (PDT) Message-ID: Date: Mon, 27 May 2024 09:02:11 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 2/6] thermal: Add support of multi sensors to thermal_core From: Krzysztof Kozlowski To: Alexandre Bailon , rafael@kernel.org, daniel.lezcano@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240524143150.610949-1-abailon@baylibre.com> <20240524143150.610949-3-abailon@baylibre.com> <834e18c7-21b6-400e-aa61-a4f591027620@linaro.org> Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fS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JL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <834e18c7-21b6-400e-aa61-a4f591027620@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 27/05/2024 09:00, Krzysztof Kozlowski wrote: > On 24/05/2024 16:31, Alexandre Bailon wrote: >> This adds support of multi sensors to thermal. >> Currently, this only support the get_temp operation. >> This returns an average temperature of all the sensors. >> If defined, a coefficient is applied to the value read from the sensor >> before computing the average. >> >> Signed-off-by: Alexandre Bailon >> --- >> drivers/thermal/Makefile | 1 + >> drivers/thermal/thermal_core.h | 15 ++ >> drivers/thermal/thermal_multi.c | 332 ++++++++++++++++++++++++++++++++ >> include/uapi/linux/thermal.h | 5 + >> 4 files changed, 353 insertions(+) >> create mode 100644 drivers/thermal/thermal_multi.c > > This does not really build... > > > ../drivers/thermal/thermal_multi.c:249:38: error: initialization of ‘struct thermal_trip *’ from incompatible pointer type ‘struct thermal_trip_desc *’ [-Werror=incompatible-pointer-types] and there are other warnings: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst Best regards, Krzysztof