Skip to content

Commit 24e4c26

Browse files
spandruvadarafaeljw
authored andcommitted
thermal: int340x: processor_thermal: Move interrupt status MMIO offset to common header
Move define SOC_WT_RES_INT_STATUS_OFFSET to processor_thermal_device.h. This way it can be reused in other modules. Signed-off-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent fae633c commit 24e4c26

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

drivers/thermal/intel/int340x_thermal/processor_thermal_device.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ void proc_thermal_wt_req_remove(struct pci_dev *pdev);
9191
#define MBOX_DATA_BIT_AC_DC 30
9292
#define MBOX_DATA_BIT_VALID 31
9393

94+
#define SOC_WT_RES_INT_STATUS_OFFSET 0x5B18
95+
9496
int processor_thermal_send_mbox_read_cmd(struct pci_dev *pdev, u16 id, u64 *resp);
9597
int processor_thermal_send_mbox_write_cmd(struct pci_dev *pdev, u16 id, u32 data);
9698
int processor_thermal_mbox_interrupt_config(struct pci_dev *pdev, bool enable, int enable_bit,

drivers/thermal/intel/int340x_thermal/processor_thermal_wt_hint.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <linux/pci.h>
3333
#include "processor_thermal_device.h"
3434

35-
#define SOC_WT_RES_INT_STATUS_OFFSET 0x5B18
3635
#define SOC_WT GENMASK_ULL(47, 40)
3736

3837
#define SOC_WT_PREDICTION_INT_ENABLE_BIT 23

0 commit comments

Comments
 (0)