From patchwork Mon Dec 4 19:36:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rafael J. Wysocki" X-Patchwork-Id: 173545 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp2992553vqy; Mon, 4 Dec 2023 11:36:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IEayYD77aQm8bXUBm2pnvjL0DtbV4jtUJtaRmIHYFwGIEvWghoYIPxTN+crRPGmgOA+7xU0 X-Received: by 2002:a17:902:ce8d:b0:1d0:a663:20f5 with SMTP id f13-20020a170902ce8d00b001d0a66320f5mr1331817plg.67.1701718585840; Mon, 04 Dec 2023 11:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701718585; cv=none; d=google.com; s=arc-20160816; b=UOApO6q7wnIk/xhGh+WKVDkoSQeX86xlUfHmXqQnFEnCBPvZAQ9vmR4y8yPdJWKk6f 5XOMq+vCQDyNRXpECofe1d5EwoaazB2v8/IFK+8Wnc0zytrhJJmOS/FB4q1AhIEQf1/R TM/KQHlq2sbsvalwYCv4RB8WAiilg1uTtXkNIiecw/J3R34Bf1aY84MfVY8rYnNgqi6l nhbCQca7jey+/2JDxQrOU9qDQKuUf+IE8DvOUdc/WwnmALjL4K1+C4I/1GpfWtdGKdFt CEA59qRO3u7YBf9Q2ub9bD0M4Q57Ib1SeyzuknrZ9HiMuFA1jHsb5OlxJ/PFkDBKT35P /tnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=DILv4nEh6g37pptuoYd4pQjsrS3amLXfBBRsHamR1yE=; fh=RtuDzG3qBdBopQSgnrq4t3A5FVYxVmvg6VEK5Hsq0QA=; b=Di7pmic0v6ilzUihf3LMWnTyctUJbU1P3mYix6jhWEnKhbTf3CtQqr28ozBECSI3vW T+7EcILM1RZ/pH5TMltvhyTkUELgbOXfiNXp9GWM7CXaipI+5ntPvEh41/rqtDFZBMO9 lfMDHI6iXQnyqO8TtM6j1RHeUHrpc73KmYfaZn1E5QqaIXGXreLwPCcxBwojTNoO8AG6 SP2vLZmuAGTWV7VKdoogm/M/tudX9oLMKd8YF9XZPzfSusRKt+B2VJqnAl40UzrxXx+q hA7moOhf1b4ZLiNB3zCw0+LTD2yTESZNi+lKTaV8QqlVmUqZRZSYBWqusimF8NNuSefz eAbg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j3-20020a17090276c300b001cc31c32e0fsi8342603plt.91.2023.12.04.11.36.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 11:36:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id ABA6680725E5; Mon, 4 Dec 2023 11:36:23 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232938AbjLDTgO (ORCPT + 99 others); Mon, 4 Dec 2023 14:36:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233420AbjLDTgL (ORCPT ); Mon, 4 Dec 2023 14:36:11 -0500 Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56CF9CE; Mon, 4 Dec 2023 11:36:17 -0800 (PST) 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 76e4f80ac110b6ab; Mon, 4 Dec 2023 20:36:15 +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 8F438668764; Mon, 4 Dec 2023 20:36:14 +0100 (CET) From: "Rafael J. Wysocki" To: Linux PM Cc: Daniel Lezcano , Lukasz Luba , LKML , Srinivas Pandruvada , Zhang Rui Subject: [PATCH v1] thermal: trip: Drop redundant __thermal_zone_get_trip() header Date: Mon, 04 Dec 2023 20:36:14 +0100 Message-ID: <2709306.mvXUDI8C0e@kreacher> 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: gggruggvucftvghtrhhoucdtuddrgedvkedrudejiedguddvjecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeffffffkefgheehffelteeiveeffeevhfelteejvddvieejjeelvdeiheeuveeuffenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeeipdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhhosehlihhnrghrohdrohhrghdprhgtphhtthhopehluhhkrghsiidrlhhusggrsegrrhhmrdgtohhmpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtohepshhrihhn ihhvrghsrdhprghnughruhhvrggurgeslhhinhhugidrihhnthgvlhdrtghomhdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=6 Fuz1=6 Fuz2=6 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 04 Dec 2023 11:36:24 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784381267494022925 X-GMAIL-MSGID: 1784381267494022925 From: Rafael J. Wysocki The __thermal_zone_get_trip() header in drivers/thermal/thermal_core.h is redundant, because there is one already in thermal.h, so drop it. No functional impact. Signed-off-by: Rafael J. Wysocki Acked-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 2 -- 1 file changed, 2 deletions(-) Index: linux-pm/drivers/thermal/thermal_core.h =================================================================== --- linux-pm.orig/drivers/thermal/thermal_core.h +++ linux-pm/drivers/thermal/thermal_core.h @@ -120,8 +120,6 @@ void __thermal_zone_device_update(struct for (__trip = __tz->trips; __trip - __tz->trips < __tz->num_trips; __trip++) void __thermal_zone_set_trips(struct thermal_zone_device *tz); -int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, - struct thermal_trip *trip); int thermal_zone_trip_id(struct thermal_zone_device *tz, const struct thermal_trip *trip); void thermal_zone_trip_updated(struct thermal_zone_device *tz,