From patchwork Sat Feb 10 17:59:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Svyatoslav Ryhel X-Patchwork-Id: 20209 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1585517dyd; Sat, 10 Feb 2024 10:00:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFJTinX7U47BUT7Qv6rf8YlP7juqRqyPrJC2YJO02tTOo/M+tKSeUFxTao+Rji3lOnhFm5F X-Received: by 2002:a17:903:11ce:b0:1d7:691e:2704 with SMTP id q14-20020a17090311ce00b001d7691e2704mr3511462plh.35.1707588004164; Sat, 10 Feb 2024 10:00:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707588004; cv=pass; d=google.com; s=arc-20160816; b=BMiwBEhQTHGRsVhv6E1x0CONlbXps4txjbj9BFQC/581xspLen777J+mU+e3M1A+Fa NvZM8s1Zy/tmhgZVRyQArDLjZ7vMcrvPyukAFn0OjwSwTqfcmuiWhJ/ywPq6ERp181RI HUg7766P3t9FhmoBnT1it48ZNVq4hQRSxPaQhpPbHIzB7iyaR8dbVBeqP0wmqVdX5d+K P8F017u5RiC1L5uxd6i74EoZ/pkQq+Nb4X2cs4rrtA3DdbEXzyK5849Cg+ITeqUVXE3U Cs3LnA1o2S4qnDCBXZ9rpEiXrOdzADIX7PDd4vQv0qDbrYvqWEKptKnYGMchFKDdDXhs FhuQ== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=osp7CCpj7xgHrHOQxTuGeNk/XLl6ck22QWyA4VLv4zc=; fh=sN0QZJl+JVao06bB8HqNLrhSBfFuQwaffy0W2X2QHx4=; b=WdLhy/9qSU5UWw+L7DcPiqYMUHmkb7bcOnzcSYHgAPaGP6630QnWAv5v9maFVGReNs b4svTCr9msmIXf9qXl5swTLLfIe20Oc5cg50hAviQu+T88zQlucHZmk3jUVz+gDCSzbw /Z4naQ1R6aELClboWCuzvXf7ssAJftCFCdF0Kos2YNGGXdmnS2KWIURataElp+bX7Rz8 r79/wZVLocGJ3wTwb/WnNLRIcM/sITuiawMi9HEmtxcmChBtzuQ9rxD3t3MFZniZvKXo iOzxuH5Nwv6dCyw7d+Px+J1N5IQ+jkxBL7TP9iQfBoMzZ4+2sIuVh5USVUIc8rRf+e5m DAnw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WguAaLdT; 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-60507-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60507-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCW9bmXnHFHlP7kDEvvN+x6uDMxNX4oz0mAMur7TwkSZSnJVgGL0MlPhsYMLes05nz/n0g6mtYH0e3+LMIONpCy1zBnioA== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q10-20020a170902edca00b001d9d3b636c2si3549368plk.633.2024.02.10.10.00.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 10:00:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60507-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WguAaLdT; 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-60507-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60507-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EC62C285B30 for ; Sat, 10 Feb 2024 18:00:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9F2A55D74A; Sat, 10 Feb 2024 17:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WguAaLdT" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 7F4E45C5E4; Sat, 10 Feb 2024 17:59:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707587976; cv=none; b=dHZFQS1Uy+t8GUPFKHuow2OGto8CAxBxAuXtz74/woD2DNowrjyqPG7yYw/7c4K33fWI1dI/GC375LFBU5sQPzptI08/YtzF61lGrSbYTWr33SzqaIFb/TSAH1kX/RhZWZ6C95ubSW6kRjvdlLn2qByERzep5W4KYwAGSnQPG+E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707587976; c=relaxed/simple; bh=b7UI/H5haSYY1vo/GUoMk7Utc7xc6MpgPatIr62cEcM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sARe1l+lUPHz89ZkuWt43wETIeSnrxldbrDsMfQRCEaDDkZ4fh2in2HfNBuv6HhN1sbzdakzEjmtRrCV3d2xWoRWjeMdOnr2/RaW9Ld5X/LwVxeUP44cVaTDbbQIXktVwdA7ZDXJ3OMC6AGUNwH6ibLr/6uAdkKKvzl/PJEnWWo= 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=WguAaLdT; arc=none smtp.client-ip=209.85.221.49 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-wr1-f49.google.com with SMTP id ffacd0b85a97d-33b2fba3176so1123596f8f.0; Sat, 10 Feb 2024 09:59:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707587973; x=1708192773; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=osp7CCpj7xgHrHOQxTuGeNk/XLl6ck22QWyA4VLv4zc=; b=WguAaLdTOrLqsUKNljomO/L5TPQPAMxhD1Qn4dIiF+fo43KFd0RWakU08XMur+GTPB S+3tg64RN9PiKa7SfRGREPoypk0+BX6yWsGpl1XeO2WJ0bIyV+h4suFG7Vs/IOq5IVEL +t5ez8vaIhgHbWd+l3taNozZghgZ5DCmk9MDgmutVboJVp3fVIn22VZJHN4MeGdN8c/Z 3DMEjD4x7Y+ud9MxFpyQJqr249FU+2UTx/f3/+pRzYAQFGg2o9RkDpqB4vueB7+KK1EE 74wmLGT50RZqSFbXh4D7tX9GmEr68HiUL6dkOCp+S8ndqfMVSKjYx7oW3hu0EVWlCWQB srRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707587973; x=1708192773; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=osp7CCpj7xgHrHOQxTuGeNk/XLl6ck22QWyA4VLv4zc=; b=WJwN17bSv25u++gVT6qD9W9ojXIZLrua6/e0huzYNsyuXruyDbO88BQfLECLSJ/PEc yEl85J+60m69Ikm18JgyzMoV23HOdf23ujIMUr2eB3P+vIvkVEBLcLId8YuJpC2lAURK rgz24YJxr6s68SImqPW/j0dy52khDLc1v6Ye3zYAeEWjfxTFGk+gcJcX5oyzwHH0iYnN SmJ8hWz7P+e9OjBVTDK5HqwLFU4MnVOO963bncMl92fIlsKGESOEtmk2SX+Au3chXF/q ZAhZ95BfzFml0zQpW7xgiIg0Qpche0C9Ja9FOhi/OpRIdpoAxHfHHKOQ/eFLJANk3cp6 ICsA== X-Gm-Message-State: AOJu0Yz7n6ASlbiN1sSvw2XOP3tzLyrIoHB5C2SKIQteRfNXH2E6wPXg SuPxW/5351H16zbyia4p7JFVYLY5v4PasDHgwyifCXf1pH4SQoUfMaCAO/0j X-Received: by 2002:adf:d1e6:0:b0:33b:48ee:8a35 with SMTP id g6-20020adfd1e6000000b0033b48ee8a35mr2678618wrd.3.1707587972392; Sat, 10 Feb 2024 09:59:32 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVgu95Gn/n8kkt3GoVsgFbuSIh4J+bkSjnCqbNoE51DN7PD+XasngHdQF/bmPfkgJM/P03tEslVdFii3kuqvi865El7LljteQALZowQ5BlS40I8tees5Iw1APEbazoxFUuXYgdzjHbzCXaJO7Q/FiGxukgtUNHbjSFJ1BOu2xXFSuA79XklPRbFAQxzH650lyfI Received: from xeon.. ([188.163.112.73]) by smtp.gmail.com with ESMTPSA id y1-20020adffa41000000b0033b67f6ec80sm2379920wrr.80.2024.02.10.09.59.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 09:59:32 -0800 (PST) From: Svyatoslav Ryhel To: "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/1] thermal: thermal-generic-adc: add temp sensor function Date: Sat, 10 Feb 2024 19:59:21 +0200 Message-Id: <20240210175922.137704-1-clamor95@gmail.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790535798906032577 X-GMAIL-MSGID: 1790535798906032577 Existing thermal-generic-adc states to be an adc-based thermal sensor, which is not entirely true. It provides a thermal sensor cell, but it does not provide an IIO sensor cell, which would benefit devices that use adc sensors to detect temperature and need a custom calibration table. Svyatoslav Ryhel (1): thermal: thermal-generic-adc: add temperature sensor function drivers/thermal/thermal-generic-adc.c | 57 ++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-)