@@ -122,7 +122,7 @@ enum si_stat_indexes {
122
122
};
123
123
124
124
struct smi_info {
125
- int intf_num ;
125
+ int si_num ;
126
126
struct ipmi_smi * intf ;
127
127
struct si_sm_data * si_sm ;
128
128
const struct si_sm_handlers * handlers ;
@@ -957,8 +957,8 @@ static inline int ipmi_thread_busy_wait(enum si_sm_result smi_result,
957
957
{
958
958
unsigned int max_busy_us = 0 ;
959
959
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 ];
962
962
if (max_busy_us == 0 || smi_result != SI_SM_CALL_WITH_DELAY )
963
963
ipmi_si_set_not_busy (busy_until );
964
964
else if (!ipmi_si_is_busy (busy_until )) {
@@ -1160,8 +1160,8 @@ static int smi_start_processing(void *send_info,
1160
1160
/*
1161
1161
* Check if the user forcefully enabled the daemon.
1162
1162
*/
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 ];
1165
1165
/*
1166
1166
* The BT interface is efficient enough to not need a thread,
1167
1167
* and there is no need for a thread if we have interrupts.
@@ -1171,7 +1171,7 @@ static int smi_start_processing(void *send_info,
1171
1171
1172
1172
if (enable ) {
1173
1173
new_smi -> thread = kthread_run (ipmi_thread , new_smi ,
1174
- "kipmi%d" , new_smi -> intf_num );
1174
+ "kipmi%d" , new_smi -> si_num );
1175
1175
if (IS_ERR (new_smi -> thread )) {
1176
1176
dev_notice (new_smi -> io .dev , "Could not start"
1177
1177
" kernel thread due to error %ld, only using"
@@ -2053,19 +2053,19 @@ static int try_smi_init(struct smi_info *new_smi)
2053
2053
goto out_err ;
2054
2054
}
2055
2055
2056
- new_smi -> intf_num = smi_num ;
2056
+ new_smi -> si_num = smi_num ;
2057
2057
2058
2058
/* Do this early so it's available for logs. */
2059
2059
if (!new_smi -> io .dev ) {
2060
2060
init_name = kasprintf (GFP_KERNEL , "ipmi_si.%d" ,
2061
- new_smi -> intf_num );
2061
+ new_smi -> si_num );
2062
2062
2063
2063
/*
2064
2064
* If we don't already have a device from something
2065
2065
* else (like PCI), then register a new one.
2066
2066
*/
2067
2067
new_smi -> pdev = platform_device_alloc ("ipmi_si" ,
2068
- new_smi -> intf_num );
2068
+ new_smi -> si_num );
2069
2069
if (!new_smi -> pdev ) {
2070
2070
pr_err (PFX "Unable to allocate platform device\n" );
2071
2071
rv = - ENOMEM ;
0 commit comments