Skip to content

Commit 57bccb4

Browse files
committed
ipmi_si: Rename intf_num to si_num
There is already an intf_num in the main IPMI device structure, use a different name in the ipmi_si code to avoid confusion. Signed-off-by: Corey Minyard <[email protected]>
1 parent 0fbecb4 commit 57bccb4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/char/ipmi/ipmi_si_intf.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ enum si_stat_indexes {
122122
};
123123

124124
struct smi_info {
125-
int intf_num;
125+
int si_num;
126126
struct ipmi_smi *intf;
127127
struct si_sm_data *si_sm;
128128
const struct si_sm_handlers *handlers;
@@ -957,8 +957,8 @@ static inline int ipmi_thread_busy_wait(enum si_sm_result smi_result,
957957
{
958958
unsigned int max_busy_us = 0;
959959

960-
if (smi_info->intf_num < num_max_busy_us)
961-
max_busy_us = kipmid_max_busy_us[smi_info->intf_num];
960+
if (smi_info->si_num < num_max_busy_us)
961+
max_busy_us = kipmid_max_busy_us[smi_info->si_num];
962962
if (max_busy_us == 0 || smi_result != SI_SM_CALL_WITH_DELAY)
963963
ipmi_si_set_not_busy(busy_until);
964964
else if (!ipmi_si_is_busy(busy_until)) {
@@ -1160,8 +1160,8 @@ static int smi_start_processing(void *send_info,
11601160
/*
11611161
* Check if the user forcefully enabled the daemon.
11621162
*/
1163-
if (new_smi->intf_num < num_force_kipmid)
1164-
enable = force_kipmid[new_smi->intf_num];
1163+
if (new_smi->si_num < num_force_kipmid)
1164+
enable = force_kipmid[new_smi->si_num];
11651165
/*
11661166
* The BT interface is efficient enough to not need a thread,
11671167
* and there is no need for a thread if we have interrupts.
@@ -1171,7 +1171,7 @@ static int smi_start_processing(void *send_info,
11711171

11721172
if (enable) {
11731173
new_smi->thread = kthread_run(ipmi_thread, new_smi,
1174-
"kipmi%d", new_smi->intf_num);
1174+
"kipmi%d", new_smi->si_num);
11751175
if (IS_ERR(new_smi->thread)) {
11761176
dev_notice(new_smi->io.dev, "Could not start"
11771177
" kernel thread due to error %ld, only using"
@@ -2053,19 +2053,19 @@ static int try_smi_init(struct smi_info *new_smi)
20532053
goto out_err;
20542054
}
20552055

2056-
new_smi->intf_num = smi_num;
2056+
new_smi->si_num = smi_num;
20572057

20582058
/* Do this early so it's available for logs. */
20592059
if (!new_smi->io.dev) {
20602060
init_name = kasprintf(GFP_KERNEL, "ipmi_si.%d",
2061-
new_smi->intf_num);
2061+
new_smi->si_num);
20622062

20632063
/*
20642064
* If we don't already have a device from something
20652065
* else (like PCI), then register a new one.
20662066
*/
20672067
new_smi->pdev = platform_device_alloc("ipmi_si",
2068-
new_smi->intf_num);
2068+
new_smi->si_num);
20692069
if (!new_smi->pdev) {
20702070
pr_err(PFX "Unable to allocate platform device\n");
20712071
rv = -ENOMEM;

0 commit comments

Comments
 (0)