From: Jan Kiszka <[email protected]>

It is not changed during runtime.

Signed-off-by: Jan Kiszka <[email protected]>
---
 drivers/watchdog/itco.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/watchdog/itco.c b/drivers/watchdog/itco.c
index 85e9c36..7b14b69 100644
--- a/drivers/watchdog/itco.c
+++ b/drivers/watchdog/itco.c
@@ -97,7 +97,7 @@ static const iTCO_regs iTCO_version_regs[] = {
        },
 };
 
-static iTCO_info iTCO_chipset_info[] = {
+static const iTCO_info iTCO_chipset_info[] = {
     [ITCO_INTEL_APL] =
        {
            .name = L"Apollo Lake SoC",
@@ -165,7 +165,7 @@ static UINTN get_timeout_value(UINT32 iTCO_version, UINTN 
seconds){
        return iTCO_version == ITCO_V3 ? seconds : ((seconds * 10 ) / 6);
 }
 
-static UINT32 get_tco_base(EFI_PCI_IO *pci_io, iTCO_info *itco)
+static UINT32 get_tco_base(EFI_PCI_IO *pci_io, const iTCO_info *itco)
 {
        const iTCO_regs* regs = &iTCO_version_regs[itco->itco_version];
        UINT32 pm_base;
@@ -209,7 +209,7 @@ static EFI_STATUS update_no_reboot_flag_cnt(EFI_PCI_IO 
*pci_io,
 }
 
 static EFI_STATUS update_no_reboot_flag_mem(EFI_PCI_IO *pci_io,
-                                           iTCO_info *itco)
+                                           const iTCO_info *itco)
 {
        const iTCO_regs* regs = &iTCO_version_regs[itco->itco_version];
        EFI_STATUS status;
@@ -252,7 +252,7 @@ static UINTN apl_mmcfg_address(UINTN bus, UINTN device, 
UINTN function,
 
 static EFI_STATUS update_no_reboot_flag_apl(__attribute__((unused))
                                            EFI_PCI_IO *pci_io,
-                                           iTCO_info *itco)
+                                           const iTCO_info *itco)
 {
        const iTCO_regs* regs = &iTCO_version_regs[itco->itco_version];
 
@@ -282,7 +282,7 @@ init(EFI_PCI_IO *pci_io, UINT16 pci_vendor_id, UINT16 
pci_device_id,
      UINTN timeout)
 {
        UINT8 itco_chip;
-       iTCO_info *itco;
+       const iTCO_info *itco;
        UINT32 tco_base, value;
        EFI_STATUS status;
 
-- 
2.26.2

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/ca2755a94f801763d30eec543c312559ce57a188.1622447849.git.jan.kiszka%40siemens.com.

Reply via email to