Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

thermal/drivers/mediatek/lvts: Remove unused lvts_debugfs_exit

When debugfs is disabled, the function has no reference any more:

drivers/thermal/mediatek/lvts_thermal.c:266:13: error: 'lvts_debugfs_exit' defined but not used [-Werror=unused-function]
266 | static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { }
| ^~~~~~~~~~~~~~~~~

Fixes: ef280c17a840 ("thermal/drivers/mediatek/lvts: Fix debugfs unregister on failure")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250505052502.1812867-1-arnd@kernel.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Arnd Bergmann and committed by
Daniel Lezcano
3159c96a b4982566

-2
-2
drivers/thermal/mediatek/lvts_thermal.c
··· 263 263 return 0; 264 264 } 265 265 266 - static void lvts_debugfs_exit(struct lvts_domain *lvts_td) { } 267 - 268 266 #endif 269 267 270 268 static int lvts_raw_to_temp(u32 raw_temp, int temp_factor)