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

platform/x86: ips: Remove unused debug code

Remove unused debug code inside #if 0 ... #endif.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231208134845.3900-1-ilpo.jarvinen@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Ilpo Järvinen and committed by
Hans de Goede
682b43a0 b06458d1

-33
-33
drivers/platform/x86/intel_ips.c
··· 1105 1105 return 0; 1106 1106 } 1107 1107 1108 - #if 0 1109 - #define THM_DUMPW(reg) \ 1110 - { \ 1111 - u16 val = thm_readw(reg); \ 1112 - dev_dbg(ips->dev, #reg ": 0x%04x\n", val); \ 1113 - } 1114 - #define THM_DUMPL(reg) \ 1115 - { \ 1116 - u32 val = thm_readl(reg); \ 1117 - dev_dbg(ips->dev, #reg ": 0x%08x\n", val); \ 1118 - } 1119 - #define THM_DUMPQ(reg) \ 1120 - { \ 1121 - u64 val = thm_readq(reg); \ 1122 - dev_dbg(ips->dev, #reg ": 0x%016x\n", val); \ 1123 - } 1124 - 1125 - static void dump_thermal_info(struct ips_driver *ips) 1126 - { 1127 - u16 ptl; 1128 - 1129 - ptl = thm_readw(THM_PTL); 1130 - dev_dbg(ips->dev, "Processor temp limit: %d\n", ptl); 1131 - 1132 - THM_DUMPW(THM_CTA); 1133 - THM_DUMPW(THM_TRC); 1134 - THM_DUMPW(THM_CTV1); 1135 - THM_DUMPL(THM_STS); 1136 - THM_DUMPW(THM_PTV); 1137 - THM_DUMPQ(THM_MGTV); 1138 - } 1139 - #endif 1140 - 1141 1108 /** 1142 1109 * ips_irq_handler - handle temperature triggers and other IPS events 1143 1110 * @irq: irq number