@@ -73,9 +73,9 @@ struct armada_thermal_priv {
73
73
};
74
74
75
75
struct armada_thermal_data {
76
- /* Initialize the sensor */
77
- void (* init_sensor )(struct platform_device * pdev ,
78
- struct armada_thermal_priv * );
76
+ /* Initialize the thermal IC */
77
+ void (* init )(struct platform_device * pdev ,
78
+ struct armada_thermal_priv * priv );
79
79
80
80
/* Test for a valid sensor value (optional) */
81
81
bool (* is_valid )(struct armada_thermal_priv * );
@@ -94,8 +94,8 @@ struct armada_thermal_data {
94
94
bool needs_control0 ;
95
95
};
96
96
97
- static void armadaxp_init_sensor (struct platform_device * pdev ,
98
- struct armada_thermal_priv * priv )
97
+ static void armadaxp_init (struct platform_device * pdev ,
98
+ struct armada_thermal_priv * priv )
99
99
{
100
100
u32 reg ;
101
101
@@ -117,8 +117,8 @@ static void armadaxp_init_sensor(struct platform_device *pdev,
117
117
writel (reg , priv -> status );
118
118
}
119
119
120
- static void armada370_init_sensor (struct platform_device * pdev ,
121
- struct armada_thermal_priv * priv )
120
+ static void armada370_init (struct platform_device * pdev ,
121
+ struct armada_thermal_priv * priv )
122
122
{
123
123
u32 reg ;
124
124
@@ -136,8 +136,8 @@ static void armada370_init_sensor(struct platform_device *pdev,
136
136
msleep (10 );
137
137
}
138
138
139
- static void armada375_init_sensor (struct platform_device * pdev ,
140
- struct armada_thermal_priv * priv )
139
+ static void armada375_init (struct platform_device * pdev ,
140
+ struct armada_thermal_priv * priv )
141
141
{
142
142
u32 reg ;
143
143
@@ -164,8 +164,8 @@ static void armada_wait_sensor_validity(struct armada_thermal_priv *priv)
164
164
STATUS_POLL_TIMEOUT_US );
165
165
}
166
166
167
- static void armada380_init_sensor (struct platform_device * pdev ,
168
- struct armada_thermal_priv * priv )
167
+ static void armada380_init (struct platform_device * pdev ,
168
+ struct armada_thermal_priv * priv )
169
169
{
170
170
u32 reg = readl_relaxed (priv -> control1 );
171
171
@@ -186,8 +186,8 @@ static void armada380_init_sensor(struct platform_device *pdev,
186
186
armada_wait_sensor_validity (priv );
187
187
}
188
188
189
- static void armada_ap806_init_sensor (struct platform_device * pdev ,
190
- struct armada_thermal_priv * priv )
189
+ static void armada_ap806_init (struct platform_device * pdev ,
190
+ struct armada_thermal_priv * priv )
191
191
{
192
192
u32 reg ;
193
193
@@ -247,7 +247,7 @@ static struct thermal_zone_device_ops ops = {
247
247
};
248
248
249
249
static const struct armada_thermal_data armadaxp_data = {
250
- .init_sensor = armadaxp_init_sensor ,
250
+ .init = armadaxp_init ,
251
251
.temp_shift = 10 ,
252
252
.temp_mask = 0x1ff ,
253
253
.coef_b = 3153000000ULL ,
@@ -257,7 +257,7 @@ static const struct armada_thermal_data armadaxp_data = {
257
257
258
258
static const struct armada_thermal_data armada370_data = {
259
259
.is_valid = armada_is_valid ,
260
- .init_sensor = armada370_init_sensor ,
260
+ .init = armada370_init ,
261
261
.is_valid_bit = BIT (9 ),
262
262
.temp_shift = 10 ,
263
263
.temp_mask = 0x1ff ,
@@ -268,7 +268,7 @@ static const struct armada_thermal_data armada370_data = {
268
268
269
269
static const struct armada_thermal_data armada375_data = {
270
270
.is_valid = armada_is_valid ,
271
- .init_sensor = armada375_init_sensor ,
271
+ .init = armada375_init ,
272
272
.is_valid_bit = BIT (10 ),
273
273
.temp_shift = 0 ,
274
274
.temp_mask = 0x1ff ,
@@ -280,7 +280,7 @@ static const struct armada_thermal_data armada375_data = {
280
280
281
281
static const struct armada_thermal_data armada380_data = {
282
282
.is_valid = armada_is_valid ,
283
- .init_sensor = armada380_init_sensor ,
283
+ .init = armada380_init ,
284
284
.is_valid_bit = BIT (10 ),
285
285
.temp_shift = 0 ,
286
286
.temp_mask = 0x3ff ,
@@ -292,7 +292,7 @@ static const struct armada_thermal_data armada380_data = {
292
292
293
293
static const struct armada_thermal_data armada_ap806_data = {
294
294
.is_valid = armada_is_valid ,
295
- .init_sensor = armada_ap806_init_sensor ,
295
+ .init = armada_ap806_init ,
296
296
.is_valid_bit = BIT (16 ),
297
297
.temp_shift = 0 ,
298
298
.temp_mask = 0x3ff ,
@@ -306,7 +306,7 @@ static const struct armada_thermal_data armada_ap806_data = {
306
306
307
307
static const struct armada_thermal_data armada_cp110_data = {
308
308
.is_valid = armada_is_valid ,
309
- .init_sensor = armada380_init_sensor ,
309
+ .init = armada380_init ,
310
310
.is_valid_bit = BIT (10 ),
311
311
.temp_shift = 0 ,
312
312
.temp_mask = 0x3ff ,
@@ -429,7 +429,7 @@ static int armada_thermal_probe(struct platform_device *pdev)
429
429
priv -> control1 = control + CONTROL1_OFFSET ;
430
430
}
431
431
432
- priv -> data -> init_sensor (pdev , priv );
432
+ priv -> data -> init (pdev , priv );
433
433
434
434
thermal = thermal_zone_device_register (priv -> zone_name , 0 , 0 , priv ,
435
435
& ops , NULL , 0 , 0 );
0 commit comments