diff options
author | Corey Minyard <cminyard@mvista.com> | 2019-02-21 12:53:00 -0600 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2019-02-22 07:12:41 -0600 |
commit | f6296bdc49c4d3794b5a3ef0012fc0889e2f3f94 (patch) | |
tree | 65fe031ac59e7bde13dfd2212b40a6d7bf1aeec5 /drivers/char/ipmi/ipmi_si_hotmod.c | |
parent | f25eb4483268c3352973f7ed888f26b7fb9662db (diff) |
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_hotmod.c')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_hotmod.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/ipmi/ipmi_si_hotmod.c b/drivers/char/ipmi/ipmi_si_hotmod.c index c0067fd0480d..f3d455bbf3cc 100644 --- a/drivers/char/ipmi/ipmi_si_hotmod.c +++ b/drivers/char/ipmi/ipmi_si_hotmod.c @@ -106,7 +106,7 @@ static int hotmod_handler(const char *val, const struct kernel_param *kp) char *next, *curr, *s, *n, *o; enum hotmod_op op; enum si_type si_type; - int addr_space; + enum ipmi_addr_space addr_space; unsigned long addr; int regspacing; int regsize; @@ -150,9 +150,10 @@ static int hotmod_handler(const char *val, const struct kernel_param *kp) break; si_type = ival; - rv = parse_str(hotmod_as, &addr_space, "address space", &curr); + rv = parse_str(hotmod_as, &ival, "address space", &curr); if (rv) break; + addr_space = ival; s = strchr(curr, ','); if (s) { @@ -215,7 +216,7 @@ static int hotmod_handler(const char *val, const struct kernel_param *kp) io.addr_source = SI_HOTMOD; io.si_type = si_type; io.addr_data = addr; - io.addr_type = addr_space; + io.addr_space = addr_space; io.addr = NULL; io.regspacing = regspacing; |