From patchwork Mon Feb 12 18:32:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 199986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp97592dyb; Mon, 12 Feb 2024 10:34:16 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVWUFIUZjmTc67cnxL3SBvxBmqWWrK/0mZsQ8AxZMCUrqz1hiPNPk52HG7BkW3bOxVzglFB2z0BYp+KasSqtSuV86zm/Q== X-Google-Smtp-Source: AGHT+IE79l+K7GnYyhP/FUDdSQ6cfa+vb3R1wSqpu7WrblwhalcIh3jZEE54R+axh86tvenwCm8w X-Received: by 2002:a05:6122:4a02:b0:4c0:774b:e7b0 with SMTP id ez2-20020a0561224a0200b004c0774be7b0mr2815289vkb.13.1707762856565; Mon, 12 Feb 2024 10:34:16 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707762856; cv=pass; d=google.com; s=arc-20160816; b=bfWmi615kfBFjAqTcjBLfIB2JJthpxrZEW4MtPnKrnxiEmvgf5q1xxw2NtFWWU7xUy 6Uyp/7lQI+toJ2Zu9olcAoCXPDbaWJHZtZMJsKfcjvaIUeJBy4Fzz71eZW5pV6H9U7N7 +OLWu1ImCuIWN1+YFbbfWPiu2tHTHskTGzd/PzfGCXnDMBxVTMA3NaSPo68yt0QHYTBb glHA355jzHwB21HemFqZc2v6dEscANBD/a1LFeA8Wqyoo2aWg7cu97ByOc2OGsZSZMaB vyWeLc/0RM1Ol94Do1NoJNF6oIGhTQjj2hjKBpIKLMnvFLpyuWBwseSAPd6KHfsTYtTV Kh+A== 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=9jA7LfOT8YyArLm2ARFTLl9FjzHhezYV9UFC236xIhQ=; b=Q2fQgnQm69N4CqAPL8ZmJiZ85hS+JuxSRODGJ3noeALzatKIkLhgSquiD5LodaBgPc nfqS+siPvYxXID1qzuVzX6SRxYbeuxgEGJBWa/qDU+jB5oZVN5O27MB4HkB9+4HVl8xt E9AIjuavhSPENnyyyVgVykKERka8IaP8kTr7vT1ypxvyRDaAfBG/IbFVVZ2lIx4tcAKA goLewdXUZpMUVmJJWCF1SzgXIAcXpRxqlw+AY1/gr6hafcSUWiR676BBWwdL+jmsv2k3 zY9xEGqkPTFeKi+TiV80ApumMbTd6o2WU5YhM0dbORM804Xl3lwBxoMjhI2z7QHyPXRz L9nA==; 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-62191-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62191-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUKNW7cTjdDB6/z4RvjTxzessY6lvguJL7F4lz0SQot6lM0KnSsOETNy+7XeJJC0Ipy5TcOhqBY9rmkeqpACF5PgqbfKw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x197-20020a1f7cce000000b004c035017a89si773733vkc.9.2024.02.12.10.34.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:34:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62191-ouuuleilei=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; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-62191-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62191-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5794C1C22261 for ; Mon, 12 Feb 2024 18:34:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7A0C9495FD; Mon, 12 Feb 2024 18:32:36 +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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790719145375439707 X-GMAIL-MSGID: 1790719145375439707 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 Reviewed-by: Daniel Lezcano --- 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 *,