mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Julian Braha <julianbraha@gmail.com>
To: rafael@kernel.org, daniel.lezcano@kernel.org
Cc: rui.zhang@intel.com, lukasz.luba@arm.com,
	linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org,
	Julian Braha <julianbraha@gmail.com>
Subject: [PATCH] thermal/fw: cleanup dead files
Date: Sat,  5 Dec 2026 18:21:11 +0000	[thread overview]
Message-ID: <20261205182111.3229485-1-julianbraha@gmail.com> (raw)

These two files:

    drivers/thermal/thermal-fw.c
    drivers/thermal/thermal_fw.c

have been dead since they were added in
commit 55c16e15ff9f ("thermal/drivers: Remove redundant error messages on
IRQ request failure") and may have been checked in with the commit by
accident.

No Makefile includes these files as targets, and no C file includes them.
Let's cleanup this dead code.

Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
 drivers/thermal/thermal-fw.c | 12 -----
 drivers/thermal/thermal_fw.c | 97 ------------------------------------
 2 files changed, 109 deletions(-)
 delete mode 100644 drivers/thermal/thermal-fw.c
 delete mode 100644 drivers/thermal/thermal_fw.c

diff --git a/drivers/thermal/thermal-fw.c b/drivers/thermal/thermal-fw.c
deleted file mode 100644
index 47c557e3244d..000000000000
--- a/drivers/thermal/thermal-fw.c
+++ /dev/null
@@ -1,12 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * of-thermal-testing.c - Generic Thermal Management device tree testing support
- *
- * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
- */
-#include <linux/platform_device.h>
-#include <linux/fwnode.h>
-#include <linux/module.h>
-
-
-
diff --git a/drivers/thermal/thermal_fw.c b/drivers/thermal/thermal_fw.c
deleted file mode 100644
index 7c28bfada386..000000000000
--- a/drivers/thermal/thermal_fw.c
+++ /dev/null
@@ -1,97 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- *  thermal-fw.c - Thermal components creation from firmware description
- *
- * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
- */
-#include <linux/fwnode.h>
-#include <linux/module.h>
-#include <linux/platform_device.h>
-#include <linux/thermal.h>
-
-/**
- * thermal_fwnode_cooling_device_register() - register an thermal cooling device
- * @fwnode:	a pointer to a firmware node.
- * @fwn_index:	a cooling device index in the cooling controller
- * @type:	the thermal cooling device type.
- * @devdata:	device private data.
- * @ops:		standard thermal cooling devices callbacks.
- *
- * This function will register a cooling device with a firmware node reference.
- * This interface function adds a new thermal cooling device (fan/processor/...)
- * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself
- * to all the thermal zone devices registered at the same time.
- *
- * Return: a pointer to the created struct thermal_cooling_device or an
- * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
- */
-struct thermal_cooling_device *
-thermal_fwnode_cooling_device_register(struct fwnode_handle *fwnode, int fwn_index,
-				       const char *type, void *devdata,
-				       const struct thermal_cooling_device_ops *ops)
-{
-	struct thermal_cooling_device *cdev;
-
-	cdev = __thermal_cooling_device_register(type, devdata, ops);
-	if (IS_ERR(cdev))
-		return cdev;
-
-	cdev->np = (struct device_node *)fwnode;
-	cdev->of_index = fwn_index;
-	thermal_cooling_device_init_complete(cdev);
-
-	return cdev;
-}
-EXPORT_SYMBOL_GPL(thermal_fwnode_cooling_device_register);
-
-static struct thermal_cooling_device *
-__devm_thermal_fwnode_cooling_device_register(struct device *dev, struct fwnode_handle *fwnode,
-					      int fwn_index, const char *type, void *devdata,
-					      const struct thermal_cooling_device_ops *ops)
-{
-	struct thermal_cooling_device **ptr, *tcd;
-
-	ptr = devres_alloc(thermal_cooling_device_release, sizeof(*ptr),
-			   GFP_KERNEL);
-	if (!ptr)
-		return ERR_PTR(-ENOMEM);
-
-	tcd = thermal_fwnode_cooling_device_register(fwnode, fwn_index, type, devdata, ops);
-	if (IS_ERR(tcd)) {
-		devres_free(ptr);
-		return tcd;
-	}
-
-	*ptr = tcd;
-	devres_add(dev, ptr);
-
-	return tcd;
-}
-
-/**
- * devm_thermal_fwnode_cooling_device_register() - register a thermal cooling device
- * @dev:	a valid struct device pointer of a sensor device.
- * @fwn_index:	a cooling device index in the cooling controller
- * @type:	the thermal cooling device type.
- * @devdata:	device private data.
- * @ops:	standard thermal cooling devices callbacks.
- *
- * This function will register a cooling device with a firmware node reference.
- * This interface function adds a new thermal cooling device (fan/processor/...)
- * to /sys/class/thermal/ folder as cooling_device[0-*]. It tries to bind itself
- * to all the thermal zone devices registered at the same time.
- *
- * Return: a pointer to the created struct thermal_cooling_device or an
- * ERR_PTR. Caller must check return value with IS_ERR*() helpers.
- */
-struct thermal_cooling_device *
-devm_thermal_fwnode_cooling_device_register(struct device *dev, int fwn_index,
-					    const char *type, void *devdata,
-					    const struct thermal_cooling_device_ops *ops)
-{
-	return __devm_thermal_fwnode_cooling_device_register(dev, dev_fwnode(dev), fwn_index,
-							     type, devdata, ops);
-}
-EXPORT_SYMBOL_GPL(devm_thermal_fwnode_cooling_device_register);
-
-
-- 
2.56.1


                 reply	other threads:[~2026-12-05 18:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261205182111.3229485-1-julianbraha@gmail.com \
    --to=julianbraha@gmail.com \
    --cc=daniel.lezcano@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=lukasz.luba@arm.com \
    --cc=rafael@kernel.org \
    --cc=rui.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®