@@ -264,7 +264,7 @@ static int sh_irda_set_baudrate(struct sh_irda_self *self, int baudrate)
264
264
return 0 ;
265
265
}
266
266
267
- static int xir_get_rcv_length (struct sh_irda_self * self )
267
+ static int sh_irda_get_rcv_length (struct sh_irda_self * self )
268
268
{
269
269
return RFL_MASK & sh_irda_read (self , IRRFLR );
270
270
}
@@ -274,47 +274,47 @@ static int xir_get_rcv_length(struct sh_irda_self *self)
274
274
* NONE MODE
275
275
*
276
276
*=====================================*/
277
- static int xir_fre (struct sh_irda_self * self )
277
+ static int sh_irda_xir_fre (struct sh_irda_self * self )
278
278
{
279
279
struct device * dev = & self -> ndev -> dev ;
280
280
dev_err (dev , "none mode: frame recv\n" );
281
281
return 0 ;
282
282
}
283
283
284
- static int xir_trov (struct sh_irda_self * self )
284
+ static int sh_irda_xir_trov (struct sh_irda_self * self )
285
285
{
286
286
struct device * dev = & self -> ndev -> dev ;
287
287
dev_err (dev , "none mode: buffer ram over\n" );
288
288
return 0 ;
289
289
}
290
290
291
- static int xir_9 (struct sh_irda_self * self )
291
+ static int sh_irda_xir_9 (struct sh_irda_self * self )
292
292
{
293
293
struct device * dev = & self -> ndev -> dev ;
294
294
dev_err (dev , "none mode: time over\n" );
295
295
return 0 ;
296
296
}
297
297
298
- static int xir_8 (struct sh_irda_self * self )
298
+ static int sh_irda_xir_8 (struct sh_irda_self * self )
299
299
{
300
300
struct device * dev = & self -> ndev -> dev ;
301
301
dev_err (dev , "none mode: framing error\n" );
302
302
return 0 ;
303
303
}
304
304
305
- static int xir_fte (struct sh_irda_self * self )
305
+ static int sh_irda_xir_fte (struct sh_irda_self * self )
306
306
{
307
307
struct device * dev = & self -> ndev -> dev ;
308
308
dev_err (dev , "none mode: frame transmit end\n" );
309
309
return 0 ;
310
310
}
311
311
312
- static struct sh_irda_xir_func xir_func = {
313
- .xir_fre = xir_fre ,
314
- .xir_trov = xir_trov ,
315
- .xir_9 = xir_9 ,
316
- .xir_8 = xir_8 ,
317
- .xir_fte = xir_fte ,
312
+ static struct sh_irda_xir_func sh_irda_xir_func = {
313
+ .xir_fre = sh_irda_xir_fre ,
314
+ .xir_trov = sh_irda_xir_trov ,
315
+ .xir_9 = sh_irda_xir_9 ,
316
+ .xir_8 = sh_irda_xir_8 ,
317
+ .xir_fte = sh_irda_xir_fte ,
318
318
};
319
319
320
320
/*=====================================
@@ -323,25 +323,25 @@ static struct sh_irda_xir_func xir_func = {
323
323
*
324
324
* MIR/FIR are not supported now
325
325
*=====================================*/
326
- static struct sh_irda_xir_func mfir_func = {
327
- .xir_fre = xir_fre ,
328
- .xir_trov = xir_trov ,
329
- .xir_9 = xir_9 ,
330
- .xir_8 = xir_8 ,
331
- .xir_fte = xir_fte ,
326
+ static struct sh_irda_xir_func sh_irda_mfir_func = {
327
+ .xir_fre = sh_irda_xir_fre ,
328
+ .xir_trov = sh_irda_xir_trov ,
329
+ .xir_9 = sh_irda_xir_9 ,
330
+ .xir_8 = sh_irda_xir_8 ,
331
+ .xir_fte = sh_irda_xir_fte ,
332
332
};
333
333
334
334
/*=====================================
335
335
*
336
336
* SIR MODE
337
337
*
338
338
*=====================================*/
339
- static int sir_fre (struct sh_irda_self * self )
339
+ static int sh_irda_sir_fre (struct sh_irda_self * self )
340
340
{
341
341
struct device * dev = & self -> ndev -> dev ;
342
342
u16 data16 ;
343
343
u8 * data = (u8 * )& data16 ;
344
- int len = xir_get_rcv_length (self );
344
+ int len = sh_irda_get_rcv_length (self );
345
345
int i , j ;
346
346
347
347
if (len > IRDARAM_LEN )
@@ -364,7 +364,7 @@ static int sir_fre(struct sh_irda_self *self)
364
364
return 0 ;
365
365
}
366
366
367
- static int sir_trov (struct sh_irda_self * self )
367
+ static int sh_irda_sir_trov (struct sh_irda_self * self )
368
368
{
369
369
struct device * dev = & self -> ndev -> dev ;
370
370
@@ -373,7 +373,7 @@ static int sir_trov(struct sh_irda_self *self)
373
373
return 0 ;
374
374
}
375
375
376
- static int sir_tot (struct sh_irda_self * self )
376
+ static int sh_irda_sir_tot (struct sh_irda_self * self )
377
377
{
378
378
struct device * dev = & self -> ndev -> dev ;
379
379
@@ -383,7 +383,7 @@ static int sir_tot(struct sh_irda_self *self)
383
383
return 0 ;
384
384
}
385
385
386
- static int sir_fer (struct sh_irda_self * self )
386
+ static int sh_irda_sir_fer (struct sh_irda_self * self )
387
387
{
388
388
struct device * dev = & self -> ndev -> dev ;
389
389
@@ -392,7 +392,7 @@ static int sir_fer(struct sh_irda_self *self)
392
392
return 0 ;
393
393
}
394
394
395
- static int sir_fte (struct sh_irda_self * self )
395
+ static int sh_irda_sir_fte (struct sh_irda_self * self )
396
396
{
397
397
struct device * dev = & self -> ndev -> dev ;
398
398
@@ -402,12 +402,12 @@ static int sir_fte(struct sh_irda_self *self)
402
402
return 0 ;
403
403
}
404
404
405
- static struct sh_irda_xir_func sir_func = {
406
- .xir_fre = sir_fre ,
407
- .xir_trov = sir_trov ,
408
- .xir_9 = sir_tot ,
409
- .xir_8 = sir_fer ,
410
- .xir_fte = sir_fte ,
405
+ static struct sh_irda_xir_func sh_irda_sir_func = {
406
+ .xir_fre = sh_irda_sir_fre ,
407
+ .xir_trov = sh_irda_sir_trov ,
408
+ .xir_9 = sh_irda_sir_tot ,
409
+ .xir_8 = sh_irda_sir_fer ,
410
+ .xir_fte = sh_irda_sir_fte ,
411
411
};
412
412
413
413
static void sh_irda_set_mode (struct sh_irda_self * self , enum sh_irda_mode mode )
@@ -421,22 +421,22 @@ static void sh_irda_set_mode(struct sh_irda_self *self, enum sh_irda_mode mode)
421
421
case SH_IRDA_SIR :
422
422
name = "SIR" ;
423
423
data = TMD_SIR ;
424
- func = & sir_func ;
424
+ func = & sh_irda_sir_func ;
425
425
break ;
426
426
case SH_IRDA_MIR :
427
427
name = "MIR" ;
428
428
data = TMD_MIR ;
429
- func = & mfir_func ;
429
+ func = & sh_irda_mfir_func ;
430
430
break ;
431
431
case SH_IRDA_FIR :
432
432
name = "FIR" ;
433
433
data = TMD_FIR ;
434
- func = & mfir_func ;
434
+ func = & sh_irda_mfir_func ;
435
435
break ;
436
436
default :
437
437
name = "NONE" ;
438
438
data = 0 ;
439
- func = & xir_func ;
439
+ func = & sh_irda_xir_func ;
440
440
break ;
441
441
}
442
442
0 commit comments