@@ -118,7 +118,7 @@ static int pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd, int trip)
118
118
}
119
119
#endif
120
120
121
- static int pch_wpt_init (struct pch_thermal_device * ptd )
121
+ static int pch_hw_init (struct pch_thermal_device * ptd )
122
122
{
123
123
int nr_trips = 0 ;
124
124
u16 trip_temp ;
@@ -164,13 +164,13 @@ static int pch_wpt_init(struct pch_thermal_device *ptd)
164
164
return nr_trips + pch_wpt_add_acpi_psv_trip (ptd , nr_trips );
165
165
}
166
166
167
- static int pch_wpt_get_temp (struct pch_thermal_device * ptd )
167
+ static int pch_get_temp (struct pch_thermal_device * ptd )
168
168
{
169
169
return GET_WPT_TEMP (WPT_TEMP_TSR & readw (ptd -> hw_base + WPT_TEMP ));
170
170
}
171
171
172
172
/* Cool the PCH when it's overheat in .suspend_noirq phase */
173
- static int pch_wpt_suspend (struct pch_thermal_device * ptd )
173
+ static int pch_suspend (struct pch_thermal_device * ptd )
174
174
{
175
175
u8 tsel ;
176
176
int pch_delay_cnt = 0 ;
@@ -237,7 +237,7 @@ static int pch_wpt_suspend(struct pch_thermal_device *ptd)
237
237
return 0 ;
238
238
}
239
239
240
- static int pch_wpt_resume (struct pch_thermal_device * ptd )
240
+ static int pch_resume (struct pch_thermal_device * ptd )
241
241
{
242
242
u8 tsel ;
243
243
@@ -258,13 +258,11 @@ struct pch_dev_ops {
258
258
int (* resume )(struct pch_thermal_device * ptd );
259
259
};
260
260
261
-
262
- /* dev ops for Wildcat Point */
263
- static const struct pch_dev_ops pch_dev_ops_wpt = {
264
- .hw_init = pch_wpt_init ,
265
- .get_temp = pch_wpt_get_temp ,
266
- .suspend = pch_wpt_suspend ,
267
- .resume = pch_wpt_resume ,
261
+ static const struct pch_dev_ops pch_dev_ops = {
262
+ .hw_init = pch_hw_init ,
263
+ .get_temp = pch_get_temp ,
264
+ .suspend = pch_suspend ,
265
+ .resume = pch_resume ,
268
266
};
269
267
270
268
static int pch_thermal_get_temp (struct thermal_zone_device * tzd , int * temp )
@@ -301,31 +299,31 @@ static const struct board_info {
301
299
} board_info [] = {
302
300
[board_hsw ] = {
303
301
.name = "pch_haswell" ,
304
- .ops = & pch_dev_ops_wpt ,
302
+ .ops = & pch_dev_ops ,
305
303
},
306
304
[board_wpt ] = {
307
305
.name = "pch_wildcat_point" ,
308
- .ops = & pch_dev_ops_wpt ,
306
+ .ops = & pch_dev_ops ,
309
307
},
310
308
[board_skl ] = {
311
309
.name = "pch_skylake" ,
312
- .ops = & pch_dev_ops_wpt ,
310
+ .ops = & pch_dev_ops ,
313
311
},
314
312
[board_cnl ] = {
315
313
.name = "pch_cannonlake" ,
316
- .ops = & pch_dev_ops_wpt ,
314
+ .ops = & pch_dev_ops ,
317
315
},
318
316
[board_cml ] = {
319
317
.name = "pch_cometlake" ,
320
- .ops = & pch_dev_ops_wpt ,
318
+ .ops = & pch_dev_ops ,
321
319
},
322
320
[board_lwb ] = {
323
321
.name = "pch_lewisburg" ,
324
- .ops = & pch_dev_ops_wpt ,
322
+ .ops = & pch_dev_ops ,
325
323
},
326
324
[board_wbg ] = {
327
325
.name = "pch_wellsburg" ,
328
- .ops = & pch_dev_ops_wpt ,
326
+ .ops = & pch_dev_ops ,
329
327
},
330
328
};
331
329
0 commit comments