summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Perez <emiliopeju@gmail.com>2023-11-22 20:34:28 +0000
committerCorey Minyard <minyard@acm.org>2023-12-19 06:32:27 -0600
commit242c6fd473a6a74eac4d4002be715a0d0dede036 (patch)
tree73b474a0c55a9f0e6a24580d2e9d92c93e9d0b04
parent5be50eb5ae99d890cc22ab49753330cce8731599 (diff)
ipmi: Use regspacings passed as a module parameter
regspacings parameter is currently ignored and the platform data uses a default value of 0, this has been fixed by setting the appropriate field in the platform data. Fixes: 3cd83bac481d ("ipmi: Consolidate the adding of platform devices") Signed-off-by: Emilio Perez <emiliopeju@gmail.com> Message-Id: <20231122203433.443098-1-emiliopeju@gmail.com> Signed-off-by: Corey Minyard <minyard@acm.org>
-rw-r--r--drivers/char/ipmi/ipmi_si_hardcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_hardcode.c b/drivers/char/ipmi/ipmi_si_hardcode.c
index ed5e91b1e040..0c92fa3eee88 100644
--- a/drivers/char/ipmi/ipmi_si_hardcode.c
+++ b/drivers/char/ipmi/ipmi_si_hardcode.c
@@ -80,10 +80,10 @@ static void __init ipmi_hardcode_init_one(const char *si_type_str,
}
p.regsize = regsizes[i];
+ p.regspacing = regspacings[i];
p.slave_addr = slave_addrs[i];
p.addr_source = SI_HARDCODED;
p.regshift = regshifts[i];
- p.regsize = regsizes[i];
p.addr = addr;
p.space = addr_space;