@@ -264,7 +264,7 @@ static int sh_irda_set_baudrate(struct sh_irda_self *self, int baudrate)
264264 return 0 ;
265265}
266266
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 )
268268{
269269 return RFL_MASK & sh_irda_read (self , IRRFLR );
270270}
@@ -274,47 +274,47 @@ static int xir_get_rcv_length(struct sh_irda_self *self)
274274 * NONE MODE
275275 *
276276 *=====================================*/
277- static int xir_fre (struct sh_irda_self * self )
277+ static int sh_irda_xir_fre (struct sh_irda_self * self )
278278{
279279 struct device * dev = & self -> ndev -> dev ;
280280 dev_err (dev , "none mode: frame recv\n" );
281281 return 0 ;
282282}
283283
284- static int xir_trov (struct sh_irda_self * self )
284+ static int sh_irda_xir_trov (struct sh_irda_self * self )
285285{
286286 struct device * dev = & self -> ndev -> dev ;
287287 dev_err (dev , "none mode: buffer ram over\n" );
288288 return 0 ;
289289}
290290
291- static int xir_9 (struct sh_irda_self * self )
291+ static int sh_irda_xir_9 (struct sh_irda_self * self )
292292{
293293 struct device * dev = & self -> ndev -> dev ;
294294 dev_err (dev , "none mode: time over\n" );
295295 return 0 ;
296296}
297297
298- static int xir_8 (struct sh_irda_self * self )
298+ static int sh_irda_xir_8 (struct sh_irda_self * self )
299299{
300300 struct device * dev = & self -> ndev -> dev ;
301301 dev_err (dev , "none mode: framing error\n" );
302302 return 0 ;
303303}
304304
305- static int xir_fte (struct sh_irda_self * self )
305+ static int sh_irda_xir_fte (struct sh_irda_self * self )
306306{
307307 struct device * dev = & self -> ndev -> dev ;
308308 dev_err (dev , "none mode: frame transmit end\n" );
309309 return 0 ;
310310}
311311
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 ,
318318};
319319
320320/*=====================================
@@ -323,25 +323,25 @@ static struct sh_irda_xir_func xir_func = {
323323 *
324324 * MIR/FIR are not supported now
325325 *=====================================*/
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 ,
332332};
333333
334334/*=====================================
335335 *
336336 * SIR MODE
337337 *
338338 *=====================================*/
339- static int sir_fre (struct sh_irda_self * self )
339+ static int sh_irda_sir_fre (struct sh_irda_self * self )
340340{
341341 struct device * dev = & self -> ndev -> dev ;
342342 u16 data16 ;
343343 u8 * data = (u8 * )& data16 ;
344- int len = xir_get_rcv_length (self );
344+ int len = sh_irda_get_rcv_length (self );
345345 int i , j ;
346346
347347 if (len > IRDARAM_LEN )
@@ -364,7 +364,7 @@ static int sir_fre(struct sh_irda_self *self)
364364 return 0 ;
365365}
366366
367- static int sir_trov (struct sh_irda_self * self )
367+ static int sh_irda_sir_trov (struct sh_irda_self * self )
368368{
369369 struct device * dev = & self -> ndev -> dev ;
370370
@@ -373,7 +373,7 @@ static int sir_trov(struct sh_irda_self *self)
373373 return 0 ;
374374}
375375
376- static int sir_tot (struct sh_irda_self * self )
376+ static int sh_irda_sir_tot (struct sh_irda_self * self )
377377{
378378 struct device * dev = & self -> ndev -> dev ;
379379
@@ -383,7 +383,7 @@ static int sir_tot(struct sh_irda_self *self)
383383 return 0 ;
384384}
385385
386- static int sir_fer (struct sh_irda_self * self )
386+ static int sh_irda_sir_fer (struct sh_irda_self * self )
387387{
388388 struct device * dev = & self -> ndev -> dev ;
389389
@@ -392,7 +392,7 @@ static int sir_fer(struct sh_irda_self *self)
392392 return 0 ;
393393}
394394
395- static int sir_fte (struct sh_irda_self * self )
395+ static int sh_irda_sir_fte (struct sh_irda_self * self )
396396{
397397 struct device * dev = & self -> ndev -> dev ;
398398
@@ -402,12 +402,12 @@ static int sir_fte(struct sh_irda_self *self)
402402 return 0 ;
403403}
404404
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 ,
411411};
412412
413413static 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)
421421 case SH_IRDA_SIR :
422422 name = "SIR" ;
423423 data = TMD_SIR ;
424- func = & sir_func ;
424+ func = & sh_irda_sir_func ;
425425 break ;
426426 case SH_IRDA_MIR :
427427 name = "MIR" ;
428428 data = TMD_MIR ;
429- func = & mfir_func ;
429+ func = & sh_irda_mfir_func ;
430430 break ;
431431 case SH_IRDA_FIR :
432432 name = "FIR" ;
433433 data = TMD_FIR ;
434- func = & mfir_func ;
434+ func = & sh_irda_mfir_func ;
435435 break ;
436436 default :
437437 name = "NONE" ;
438438 data = 0 ;
439- func = & xir_func ;
439+ func = & sh_irda_xir_func ;
440440 break ;
441441 }
442442
0 commit comments