Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp961609rdb; Fri, 9 Feb 2024 06:30:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHFkztFm5R3TefQPru273RPFzKyhLjd+vgnEnbLaGuYbXGfGYLbVCBtVyKBE11h4J/BJcMS X-Received: by 2002:a05:6358:6f1a:b0:178:8cc8:4c7b with SMTP id r26-20020a0563586f1a00b001788cc84c7bmr1725805rwn.24.1707489004583; Fri, 09 Feb 2024 06:30:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707489004; cv=pass; d=google.com; s=arc-20160816; b=GjY58nw3CY3DZW7+j+HWaadGbke76JYGOsG2G9IMHMDnsdM2lZkdY1gjaklvFxVHus TMGK/znM5H6A5ubRuRRg2a/n9QvQoNIhBdt9eoathUwAhETeRrWv/BG03UOH2kg4uD+e eq9BuiAQbHsF1dLLYbLpa83jBFy0BUarXjlDrYytFqFGwT27EmAq5IEtky1wWa1FLEEv SZfP9SQOK6XJUUdEY7LNGP+VX40itL9ikK1mBEjZnfmmp0zJ3pFO/prisIrtOf/uFWyy HFTdFQJi8D5NriWMw0Yhq//boBqI9uHBDZww0ou4Gwpcvo95K2wzIBfMi1Psxmbv5Rbg zBgg== 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; bh=gqrKyb09EMlzsd8qpeJUuqbiJbFXw67MrVTmVPwKFho=; fh=sVUzUMIxL7lx5TQqNDAn9UVduRi5Z9sCu24Bz1mAI9w=; b=I/X+2o3rqluslRtVNwuF7q6xxnggC6uFnDfnXElpDxbwNMi5VbefkwpxC6wwYmp4Ps blmEXXi/6K0yPEAW6PZ6gt00M6avFgDW79955V6tmZxq8HJ7+o745dV9aQtOcojAiCJ3 eRAG+aCN7yzck56rC2zgio6DvtDaKKv9qHFrCYSHe7FhC3/ho6RwztC8UXOa4/vJzEQg tQLPZmB3dh18PMZDavNBKCzAz7lzuurJHIlLOevUvgFAgaGnstgdzJpljguhLxZHgFe1 Ikx4NhdpGaUpAbLnaCFzyy5RX82hOTgxoO8ZoDnIxqCeno9ao2EL9MaBSvkPdlkTPVYM 0TEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-59438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59438-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWPInuywhcxj6wNpjTxqOfWv1P6FJ4wSIcXybf18/v6I6Vp1pvi7TW2TEyijP/2Ar3M7d0x6blw2GZ7/QuCFNVDR94ID4cggIdir0OIHg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id o17-20020a637e51000000b005dc422f0808si1771064pgn.637.2024.02.09.06.30.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:30:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59438-linux.lists.archive=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; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-59438-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59438-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EB7C028A629 for ; Fri, 9 Feb 2024 14:19:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E88817AE77; Fri, 9 Feb 2024 14:14:51 +0000 (UTC) Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 C024669959; Fri, 9 Feb 2024 14:14:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707488091; cv=none; b=saeXv8eYp4QfB4WM3ambCmT7TqXNXdpj7XlocLKZwjp1b3mQ9/TBqu+6/XtMKG4Wh2/DJfGEE52enrRLk8VdkMIpgkgFSHSqZUIJYLglPCaZpdpDve12Tyl9daelGcTFkRxyoTV5hDPiNCmUYpMm5vtFBNYdJnEC7j/uDkxiEFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707488091; c=relaxed/simple; bh=8RyrzeKlVNhzQRM5WE8ThMfxfRzaAZCqRSMjBI1at8Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pg8zNufB1QAbIP8t3Ntq5jRYlDXhUlc/4AJ1JiL/MQu9gHBSLckC3rYe9W9SIOBnmBM5NDp4qFO1tgsbQ8DN+zntMSCcKDSfLegOQ7fY7sa5zu+xqEtGq1dbNE3c2BH/2KMEpbkN13ao24aH9Ssl4nYwGIL35dpX7LBjo69o1X8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.4.0) id 51079e6e3f905612; Fri, 9 Feb 2024 15:14:46 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 281B1669C4D; Fri, 9 Feb 2024 15:14:46 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: Lukasz Luba , LKML , Daniel Lezcano , Stanislaw Gruszka , Srinivas Pandruvada , Zhang Rui , netdev@vger.kernel.org, Ido Schimmel , Petr Machata , Miri Korenblit , linux-wireless@vger.kernel.org, Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Manaf Meethalavalappu Pallikunhi Subject: [PATCH v1 3/9] thermal: core: Drop the .set_trip_hyst() thermal zone operation Date: Fri, 09 Feb 2024 15:06:59 +0100 Message-ID: <1907326.CQOukoFCf9@kreacher> In-Reply-To: <3232442.5fSG56mABF@kreacher> References: <3232442.5fSG56mABF@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrtdeigdeitdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkjghfggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpedvffeuiedtgfdvtddugeeujedtffetteegfeekffdvfedttddtuefhgeefvdejhfenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeduiedprhgtphhtthhopehlihhnuhigqdhpmhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehluhhkrghsiidrlhhusggrsegrrhhmrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehsthgr nhhishhlrgifrdhgrhhushiikhgrsehlihhnuhigrdhinhhtvghlrdgtohhmpdhrtghpthhtohepshhrihhnihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomh X-DCC--Metrics: v370.home.net.pl 1024; Body=16 Fuz1=16 Fuz2=16 From: Rafael J. Wysocki None of the users of the thermal core provides a .set_trip_hyst() thermal zone operation, so drop that callback from struct thermal_zone_device_ops and update trip_point_hyst_store() accordingly. No functional impact. Signed-off-by: Rafael J. Wysocki --- drivers/thermal/thermal_sysfs.c | 6 ------ include/linux/thermal.h | 1 - 2 files changed, 7 deletions(-) Index: linux-pm/drivers/thermal/thermal_sysfs.c =================================================================== --- linux-pm.orig/drivers/thermal/thermal_sysfs.c +++ linux-pm/drivers/thermal/thermal_sysfs.c @@ -184,12 +184,6 @@ trip_point_hyst_store(struct device *dev } if (hyst != trip->hysteresis) { - if (tz->ops->set_trip_hyst) { - ret = tz->ops->set_trip_hyst(tz, trip_id, hyst); - if (ret) - goto unlock; - } - trip->hysteresis = hyst; thermal_zone_trip_updated(tz, trip); Index: linux-pm/include/linux/thermal.h =================================================================== --- linux-pm.orig/include/linux/thermal.h +++ linux-pm/include/linux/thermal.h @@ -90,7 +90,6 @@ struct thermal_zone_device_ops { int (*change_mode) (struct thermal_zone_device *, enum thermal_device_mode); int (*set_trip_temp) (struct thermal_zone_device *, int, int); - int (*set_trip_hyst) (struct thermal_zone_device *, int, int); int (*get_crit_temp) (struct thermal_zone_device *, int *); int (*set_emul_temp) (struct thermal_zone_device *, int); int (*get_trend) (struct thermal_zone_device *,