diff options
| author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-08-31 16:08:22 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2011-09-15 17:19:16 -0400 |
| commit | b27fcddda74a3e37af86d44bcd9ff6445396d966 (patch) | |
| tree | 6c6329c6d7159d73b6c715e0c515993f6d94a5c5 | |
| parent | 93a700a9d20b05b3c3c85efc53ac840499c2e103 (diff) | |
net/irda: sh_irda: add sh_irda_ prefix to all functions
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
| -rw-r--r-- | drivers/net/irda/sh_irda.c | 68 |
1 files changed, 34 insertions, 34 deletions
diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c index 82660672dcd9..75dda0ef7d0a 100644 --- a/drivers/net/irda/sh_irda.c +++ b/drivers/net/irda/sh_irda.c | |||
| @@ -264,7 +264,7 @@ static int sh_irda_set_baudrate(struct sh_irda_self *self, int baudrate) | |||
| 264 | return 0; | 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 | return RFL_MASK & sh_irda_read(self, IRRFLR); | 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 | * NONE MODE | 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 | struct device *dev = &self->ndev->dev; | 279 | struct device *dev = &self->ndev->dev; |
| 280 | dev_err(dev, "none mode: frame recv\n"); | 280 | dev_err(dev, "none mode: frame recv\n"); |
| 281 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 286 | struct device *dev = &self->ndev->dev; |
| 287 | dev_err(dev, "none mode: buffer ram over\n"); | 287 | dev_err(dev, "none mode: buffer ram over\n"); |
| 288 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 293 | struct device *dev = &self->ndev->dev; |
| 294 | dev_err(dev, "none mode: time over\n"); | 294 | dev_err(dev, "none mode: time over\n"); |
| 295 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 300 | struct device *dev = &self->ndev->dev; |
| 301 | dev_err(dev, "none mode: framing error\n"); | 301 | dev_err(dev, "none mode: framing error\n"); |
| 302 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 307 | struct device *dev = &self->ndev->dev; |
| 308 | dev_err(dev, "none mode: frame transmit end\n"); | 308 | dev_err(dev, "none mode: frame transmit end\n"); |
| 309 | return 0; | 309 | return 0; |
| 310 | } | 310 | } |
| 311 | 311 | ||
| 312 | static struct sh_irda_xir_func xir_func = { | 312 | static struct sh_irda_xir_func sh_irda_xir_func = { |
| 313 | .xir_fre = xir_fre, | 313 | .xir_fre = sh_irda_xir_fre, |
| 314 | .xir_trov = xir_trov, | 314 | .xir_trov = sh_irda_xir_trov, |
| 315 | .xir_9 = xir_9, | 315 | .xir_9 = sh_irda_xir_9, |
| 316 | .xir_8 = xir_8, | 316 | .xir_8 = sh_irda_xir_8, |
| 317 | .xir_fte = xir_fte, | 317 | .xir_fte = sh_irda_xir_fte, |
| 318 | }; | 318 | }; |
| 319 | 319 | ||
| 320 | /*===================================== | 320 | /*===================================== |
| @@ -323,12 +323,12 @@ static struct sh_irda_xir_func xir_func = { | |||
| 323 | * | 323 | * |
| 324 | * MIR/FIR are not supported now | 324 | * MIR/FIR are not supported now |
| 325 | *=====================================*/ | 325 | *=====================================*/ |
| 326 | static struct sh_irda_xir_func mfir_func = { | 326 | static struct sh_irda_xir_func sh_irda_mfir_func = { |
| 327 | .xir_fre = xir_fre, | 327 | .xir_fre = sh_irda_xir_fre, |
| 328 | .xir_trov = xir_trov, | 328 | .xir_trov = sh_irda_xir_trov, |
| 329 | .xir_9 = xir_9, | 329 | .xir_9 = sh_irda_xir_9, |
| 330 | .xir_8 = xir_8, | 330 | .xir_8 = sh_irda_xir_8, |
| 331 | .xir_fte = xir_fte, | 331 | .xir_fte = sh_irda_xir_fte, |
| 332 | }; | 332 | }; |
| 333 | 333 | ||
| 334 | /*===================================== | 334 | /*===================================== |
| @@ -336,12 +336,12 @@ static struct sh_irda_xir_func mfir_func = { | |||
| 336 | * SIR MODE | 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 | struct device *dev = &self->ndev->dev; | 341 | struct device *dev = &self->ndev->dev; |
| 342 | u16 data16; | 342 | u16 data16; |
| 343 | u8 *data = (u8 *)&data16; | 343 | u8 *data = (u8 *)&data16; |
| 344 | int len = xir_get_rcv_length(self); | 344 | int len = sh_irda_get_rcv_length(self); |
| 345 | int i, j; | 345 | int i, j; |
| 346 | 346 | ||
| 347 | if (len > IRDARAM_LEN) | 347 | if (len > IRDARAM_LEN) |
| @@ -364,7 +364,7 @@ static int sir_fre(struct sh_irda_self *self) | |||
| 364 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 369 | struct device *dev = &self->ndev->dev; |
| 370 | 370 | ||
| @@ -373,7 +373,7 @@ static int sir_trov(struct sh_irda_self *self) | |||
| 373 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 378 | struct device *dev = &self->ndev->dev; |
| 379 | 379 | ||
| @@ -383,7 +383,7 @@ static int sir_tot(struct sh_irda_self *self) | |||
| 383 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 388 | struct device *dev = &self->ndev->dev; |
| 389 | 389 | ||
| @@ -392,7 +392,7 @@ static int sir_fer(struct sh_irda_self *self) | |||
| 392 | return 0; | 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 | struct device *dev = &self->ndev->dev; | 397 | struct device *dev = &self->ndev->dev; |
| 398 | 398 | ||
| @@ -402,12 +402,12 @@ static int sir_fte(struct sh_irda_self *self) | |||
| 402 | return 0; | 402 | return 0; |
| 403 | } | 403 | } |
| 404 | 404 | ||
| 405 | static struct sh_irda_xir_func sir_func = { | 405 | static struct sh_irda_xir_func sh_irda_sir_func = { |
| 406 | .xir_fre = sir_fre, | 406 | .xir_fre = sh_irda_sir_fre, |
| 407 | .xir_trov = sir_trov, | 407 | .xir_trov = sh_irda_sir_trov, |
| 408 | .xir_9 = sir_tot, | 408 | .xir_9 = sh_irda_sir_tot, |
| 409 | .xir_8 = sir_fer, | 409 | .xir_8 = sh_irda_sir_fer, |
| 410 | .xir_fte = sir_fte, | 410 | .xir_fte = sh_irda_sir_fte, |
| 411 | }; | 411 | }; |
| 412 | 412 | ||
| 413 | static void sh_irda_set_mode(struct sh_irda_self *self, enum sh_irda_mode mode) | 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 | case SH_IRDA_SIR: | 421 | case SH_IRDA_SIR: |
| 422 | name = "SIR"; | 422 | name = "SIR"; |
| 423 | data = TMD_SIR; | 423 | data = TMD_SIR; |
| 424 | func = &sir_func; | 424 | func = &sh_irda_sir_func; |
| 425 | break; | 425 | break; |
| 426 | case SH_IRDA_MIR: | 426 | case SH_IRDA_MIR: |
| 427 | name = "MIR"; | 427 | name = "MIR"; |
| 428 | data = TMD_MIR; | 428 | data = TMD_MIR; |
| 429 | func = &mfir_func; | 429 | func = &sh_irda_mfir_func; |
| 430 | break; | 430 | break; |
| 431 | case SH_IRDA_FIR: | 431 | case SH_IRDA_FIR: |
| 432 | name = "FIR"; | 432 | name = "FIR"; |
| 433 | data = TMD_FIR; | 433 | data = TMD_FIR; |
| 434 | func = &mfir_func; | 434 | func = &sh_irda_mfir_func; |
| 435 | break; | 435 | break; |
| 436 | default: | 436 | default: |
| 437 | name = "NONE"; | 437 | name = "NONE"; |
| 438 | data = 0; | 438 | data = 0; |
| 439 | func = &xir_func; | 439 | func = &sh_irda_xir_func; |
| 440 | break; | 440 | break; |
| 441 | } | 441 | } |
| 442 | 442 | ||
