Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Emilio Perez and committed by
Corey Minyard
242c6fd4 5be50eb5

+1 -1
+1 -1
drivers/char/ipmi/ipmi_si_hardcode.c
··· 80 80 } 81 81 82 82 p.regsize = regsizes[i]; 83 + p.regspacing = regspacings[i]; 83 84 p.slave_addr = slave_addrs[i]; 84 85 p.addr_source = SI_HARDCODED; 85 86 p.regshift = regshifts[i]; 86 - p.regsize = regsizes[i]; 87 87 p.addr = addr; 88 88 p.space = addr_space; 89 89