From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796494877; b=RFep26FSQUqLlxlgEQRPaIvYVsUwwO/n98VMo74/OX4UziIJEInLhwAspLYsaDLdeNmt 7ByddEMJ1aYv4uz5TfkYQxivHkVtHWSdYhmD2YgWGhm702CkhgL8ndNZM8erJ8bb6A7sL KGQhhyocPO6x9+jIxrN8auGWQukqtIrVf+RJZFXllcTkEB5I3MGfI2ABn41UUQ5bAoFmN TRxfnJRqa59lI8b3JSIf/9wVZATz5opuhvXiLy6p+ijFYlzzmNFhAHZeVoc6yfxB1ooa1 jE6wGDKJIssw2Bbqn4bhpXnQ7jwN51OB6tQw5vlrobVet1VCh4KG438wsY059JxdWEQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796494877; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Sender:From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=Rl9xwUCNKrtZqwKD3FKKuJOzKZL6am8UgHjOjYSUfbs=; b=C/Eh26e1VqEuSKEmS1geFXoqHQGd2kLjZab5HvIW+K5KvTxnLgIEUhBMTt40jqGoVuQz RC+jgyxdazSqsWgYebhTlLOLqYpxAU0wUEo3VIlGZPQLniyrwagvpo3mmt1pDUAYtECz0 qkoybmPy2YvtQV6T6qdXrtpfE0TrK6FNBAYnhEyn8INkZeeo4jFM5KDvKUX2xUm1oc9Un L7XOjdDNq7uubQ40AdlNLZXeMweCe7n2k1/cndkKby3HmyHuUrZgSpjpmirh2DseghEdG j1C3QyvhC5G6Z2eK5QTFqJdbViUjoUzkEaXV15BdC86CXoUPSpi3ETsHPQwk9K6z8pA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=FhPpRS0z; arc=none smtp.remote-ip=209.85.128.43 Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 95EBD606A32F for ; Sat, 5 Dec 2026 18:21:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 95EBD606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=FhPpRS0z Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4bb85e07aadso22735105e9.1 for ; Sat, 05 Dec 2026 10:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796494875; x=1797099675; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to :content-type; bh=Rl9xwUCNKrtZqwKD3FKKuJOzKZL6am8UgHjOjYSUfbs=; b=FhPpRS0zswi/GPuTLJacPjJq7FQOd8dPRZC6FgBO/MTfgbcVKdOavog0oT80Eabbzs eENY/MsNH7M4HHn8U1fAVCYkTteztNKdEM02Jpwjixau2rv38E5TcZVhSQfEso/y2eFr xHNsgjBedSqtNXnWw82t/oQJSYT5Kw7rYLtsIhLFEhbRE3N5dezxH8Ce8SPVfjf3HcbY T13E15/zIleMdB7tU1+YuZd+Syg9vdKIf3VCqPhJ6EPSferJBNg6eMTkEZeLGLelIXVp 8lnN/6dnWhZFJ4udC4MgcWkr7lszBHi79QGA+KqUNdN5HzX3Y0t2biLrHQxJ33tZl4th 66UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796494875; x=1797099675; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Rl9xwUCNKrtZqwKD3FKKuJOzKZL6am8UgHjOjYSUfbs=; b=oyskx0rOs8pI0cr2ReYqyh2S3N/ex9tYO1/YRMjLgJotjhJO3TsofrqtQ8quIJJmRb 7TJEPnuXfahqnKN/08KvZhX7lZ6kP3UJsWPjmu+Wvtxyj1O0ISPJxpy//9kucKTkO98u 5Gwo2aFABWD+RJtbduArENsubr4vUoU1WjLfTtTYMAOs79sCGeQD/VfENpvyPiHopIlZ w+Nk3ln3OPocl0eEkM2YLWQLVfnznBYdWoFws0GJCQkGm2KP9MwCh/xn1BO9h+ICjIjt TTOUcuXQ2TecrXnlSp0Sk8IERj4ufgRQDUOt6M+kUSMW8JBVIkhmmftkpwtee+CiPD1J UPfw== X-Forwarded-Encrypted: i=1; AL+hErEkXMc70pn6Xum+1ZaxiATnpig4/4X1fUTvMZWw2OTzFgAkvq6Snmg4tF3+5+fm3JNFj8KMVyLE+40qsig=@vger.kernel.org X-Gm-Message-State: APuU4Z/PHprx41n3oQ0SDaal0PSnJhw4/U/vqOzDrITsE8c8vSGmfq8l lQq0G/NXnJ4Lfg+gp+8rfpatA5vwyOJ5SI0xZjeoS8OoZtKmEXP2sVMc X-Gm-Gg: AZFdTZeHJ/INDq6IMrhezwyENGPeID9PRhvA3rzAgTq9vP/4PkEk94rboUCoUhAfWiD GTlUQ6a00al9beEj9MBrOJ/GEGBpzM1gorkxbAoaUX0IHiD+9ti9J6b7xhgUvebFDQNK52t2z3U EYMUq3uJXsvOHJbNx/mFloonImboVc5H4l0k48vWdySevk5qgBADBLmzCGLOeZZbzFkwzT0hm4W muuKgt/Aqaa6R+9lsgjned0+N8V91gFbSYC63kK6nAU7aDm+wbqlS+HyqqscnHUaaXeWyLNXXgz /mDmRljy/wWlCSp+DpIBoNjqmCDWZlKTz/Oo0M7DHNgNwMdhKTUwLHnOUF1Seg5EKw88n5oy1ng 8K+CcAjUS3mmp/xGVOx+oKTQW2HkI2tNesSC9PRFgAoHD+OyoRGiO0IXdH97HpysiETL4QqvDD9 juzuEQ9q2GFwQWJsW8dOiw6XyOAx1URPkBJVp+kkewwTf1iT7w9uebx/uWjodKpyEbT9jszluhx RI052CpcWzSXwc5pg0Xzl/yn58ZkqWZEigRcFeQwFn2oTLmp9VZWqD2BKaPVB+Tg7IT1q1l7Ude Fb+oLOLTP+rEoWpxChsUgbBqcp1DlwixpOarB8+OxGmrdzbLtogfOuiaW3h2Kcs11LEtHdxXcvl +lmXgwQ4+XXJnDkx7GA== X-Received: by 2002:a05:600c:8518:b0:4bb:aa4f:c01d with SMTP id 5b1f17b1804b1-4bbeb6ca529mr104986065e9.1.1796494874678; Sat, 05 Dec 2026 10:21:14 -0800 (PST) Received: from nixos-office (195-23-151-163.net.novis.pt. [195.23.151.163]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbea25cdc0sm151550785e9.4.2026.12.05.10.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Dec 2026 10:21:14 -0800 (PST) Sender: Julian Braha From: Julian Braha 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 Subject: [PATCH] thermal/fw: cleanup dead files Date: Sat, 5 Dec 2026 18:21:11 +0000 Message-ID: <20261205182111.3229485-1-julianbraha@gmail.com> X-Mailer: git-send-email 2.56.1 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 -#include -#include - - - 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 -#include -#include -#include - -/** - * 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