diff options
author | Corey Minyard <cminyard@mvista.com> | 2019-02-21 21:53:00 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-02-22 16:12:41 +0300 |
commit | f6296bdc49c4d3794b5a3ef0012fc0889e2f3f94 (patch) | |
tree | 65fe031ac59e7bde13dfd2212b40a6d7bf1aeec5 /drivers/char/ipmi/ipmi_si_sm.h | |
parent | f25eb4483268c3352973f7ed888f26b7fb9662db (diff) | |
download | linux-f6296bdc49c4d3794b5a3ef0012fc0889e2f3f94.tar.xz |
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 <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_sm.h')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_sm.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |