From f6296bdc49c4d3794b5a3ef0012fc0889e2f3f94 Mon Sep 17 00:00:00 2001 From: Corey Minyard Date: Thu, 21 Feb 2019 12:53:00 -0600 Subject: ipmi_si: Rename addr_type to addr_space to match what it does Make the naming consistent, and make the values an enum. Signed-off-by: Corey Minyard --- drivers/char/ipmi/ipmi_si_sm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'drivers/char/ipmi/ipmi_si_sm.h') diff --git a/drivers/char/ipmi/ipmi_si_sm.h b/drivers/char/ipmi/ipmi_si_sm.h index 41aaa555d566..499db820fadb 100644 --- a/drivers/char/ipmi/ipmi_si_sm.h +++ b/drivers/char/ipmi/ipmi_si_sm.h @@ -26,6 +26,10 @@ enum si_type { SI_TYPE_INVALID, SI_KCS, SI_SMIC, SI_BT }; +enum ipmi_addr_space { + IPMI_IO_ADDR_SPACE, IPMI_MEM_ADDR_SPACE +}; + /* * The structure for doing I/O in the state machine. The state * machine doesn't have the actual I/O routines, they are done through @@ -45,7 +49,7 @@ struct si_sm_io { unsigned int regspacing; unsigned int regsize; unsigned int regshift; - int addr_type; + enum ipmi_addr_space addr_space; unsigned long addr_data; enum ipmi_addr_src addr_source; /* ACPI, PCI, SMBIOS, hardcode, etc. */ void (*addr_source_cleanup)(struct si_sm_io *io); -- cgit v1.2.3