Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2622808rdb; Mon, 12 Feb 2024 10:33:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXYYrvA79DMbI33taJMr+c82b3cq2afjWJw9VKsb4+w/Db0SlYa9r7cSromWWBsY6tkSr2abo0647FESTNUUNyLv40pm4n2nETnYqQKzQ== X-Google-Smtp-Source: AGHT+IEzsgbQtQi/+3Bz5F/T6OGsYuvF2GjucuQ3pCyFzNQ4kbzInRF0v44OyZZoUUXMvcBTK+eE X-Received: by 2002:a05:6a00:124b:b0:6e0:9671:70ba with SMTP id u11-20020a056a00124b00b006e0967170bamr9864784pfi.27.1707762818721; Mon, 12 Feb 2024 10:33:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707762818; cv=pass; d=google.com; s=arc-20160816; b=bGClZ63XfWkbZZGHyFScA88gQ3SGY7Q2CLwz0BJJMdLVC8rBcZa6Oc9V7sNnWiZ1Wi KM0M07soZ8nPCb12AF7hFBCVzMIWDyzuv8jWUSMYxnaq5z9p5qNjLiNYFIgiFDUx+uNt a3Hhqmc9mO6+q/D+wP2oy33lGdWBQK+8yrLe1trbPayieBoH/xXYviPYItBg75CtTb9Z BNeImDYakol2xQQx4W48mGTsGo07Korvbea+xg4KuTixlJ9+IGYAx99jszS4Ft59Qbok wSnLLnG7IQve1tgSmDEhsaKkSfqSAJx2ywJuHHxeALWrQRdjy4IIR0fg8NIUANUb/Qji r5aA== 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=IiZ0Exc0MIsyF6LGnDtPZownC2ijEUaNVLs4VWvG1oo=; fh=JFUmGAmPcO/AqZGVoqRpvhHNHNbNdyTLo9xC7hHTfWU=; b=PTo0dYdB4szB/qhE7XcUFaSMVLGTbYevkcY0rJ5dprAhcZH+fgm+xUHn3LzE5zf7Aq xJE4iRrso6hcmYHRhEtva8p+X/ue9WMeCy4kpvkD0HAj3N5+mzrfDG5wAXyTIxeeayRf TjjE5MdERJRF6bygj7ma+NfVT6WHfo6pvSQabul43rubbm3knJR33FtH+TZuiblPMy5D OM1V3Hqf9nqEbhvz+h9qEquPi3QEiW4ZT1Ex3MIC3UrIuk9eH3qO3BS1tiZXdoLiBrIr iut7WTRY2i0M59B/hhx3ljoDJDGEiewuyJIozZowDqy5z7Bst9X+YqBJKS9dQ2b/BJVB xR0A==; 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-wireless+bounces-3471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3471-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVPShyaQcUwWoVTLgurEd+S0HmNOPN7Y7NDQAqb7cWy2RsFXNvSAICFdF52rWtlRsv7vRLBngeTbEnJzse9EGuZQFZaWJ/o56AWVbtEeQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z7-20020aa79907000000b006e0d7718b26si2360319pff.201.2024.02.12.10.33.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:33:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-wireless+bounces-3471-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3471-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 6383C2825BD for ; Mon, 12 Feb 2024 18:33:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA64747A58; Mon, 12 Feb 2024 18:32:34 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org 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 128FF4177B; Mon, 12 Feb 2024 18:32:30 +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=1707762754; cv=none; b=U7jhtK+VTE2jJ4nksy6nTkfVGTigEv8OHmF6Wsuk0/sFNE3FVLUsacn2U12bbodT5qal7KpiMpglg2BiRjusstKnxBFDZdRQJpxQjdYQCEMPXYUFL3N1RO4OIHwhNE/0Zpj/u9zrxnyGUymh0L+uNOGxO4Afp8VOeOF6ir29ej0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707762754; c=relaxed/simple; bh=CAquiAoDz6l8jCWNqD4aTMheP1lm5Iwrax0hj6KxiJ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Bp0xBdYjA2X9kv+vFPh1Ht2gGOyRQZju9CdUPqNM1DSjTs9q5ceS91Sco9XnDXFCP5R+5YICMr6CzOBSR0umxUEnL5ryaGORprRcQcEHyCDAu0bStWE/4wuAkljv39kZN9uZJ4qWlZKtgiW+/ZHqGwL0bqs+/T25QqnMV/usXtA= 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 d97140acc63546e4; Mon, 12 Feb 2024 19:32:22 +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 39738669CF2; Mon, 12 Feb 2024 19:32:22 +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 v2 3/9] thermal: core: Drop the .set_trip_hyst() thermal zone operation Date: Mon, 12 Feb 2024 19:32:16 +0100 Message-ID: <2923201.e9J7NaK4W3@kreacher> In-Reply-To: <6017196.lOV4Wx5bFT@kreacher> References: <6017196.lOV4Wx5bFT@kreacher> Precedence: bulk X-Mailing-List: linux-wireless@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: gggruggvucftvghtrhhoucdtuddrgedvledrudefgdduuddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecujffqoffgrffnpdggtffipffknecuuegrihhlohhuthemucduhedtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkfgjfhgggfgtsehtufertddttdejnecuhfhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqnecuggftrfgrthhtvghrnhepvdffueeitdfgvddtudegueejtdffteetgeefkeffvdeftddttdeuhfegfedvjefhnecukfhppeduleehrddufeeirdduledrleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelhedrudefiedrudelrdelgedphhgvlhhopehkrhgvrggthhgvrhdrlhhotggrlhhnvghtpdhmrghilhhfrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqedpnhgspghrtghpthhtohepudeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhukhgrshiirdhluhgsrgesrghrmhdrtghomhdprhgtphhtthhopehlihhnuhigqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopegurghnihgvlhdrlhgviigtrghnoheslhhinhgrrhhordhorhhgpdhrtghpthhtohepshht rghnihhslhgrfidrghhruhhsiihkrgeslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehsrhhinhhivhgrshdrphgrnhgurhhuvhgruggrsehlihhnuhigrdhinhhtvghlrdgtohhm 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 @@ -91,7 +91,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 *,