diff options
author | Balaji T K <balajitk@ti.com> | 2009-12-13 15:23:33 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-12-13 15:23:33 -0500 |
commit | fc7b92fca4e546184557f1c53f84ad57c66b7695 (patch) | |
tree | f15b37df7d34f525d877d33186b840947aa65b4d /drivers/mfd/twl4030-irq.c | |
parent | b07682b6056eb6701f8cb86aa5800e6f2ea7919b (diff) |
mfd: Rename all twl4030_i2c*
This patch renames function names like twl4030_i2c_write_u8,
twl4030_i2c_read_u8 to twl_i2c_write_u8, twl_i2c_read_u8
and also common variable in twl-core.c
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Balaji T K <balajitk@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl4030-irq.c')
-rw-r--r-- | drivers/mfd/twl4030-irq.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c index c4528db549c6..5a62cf916987 100644 --- a/drivers/mfd/twl4030-irq.c +++ b/drivers/mfd/twl4030-irq.c | |||
@@ -296,7 +296,7 @@ static int twl4030_irq_thread(void *data) | |||
296 | /* Wait for IRQ, then read PIH irq status (also blocking) */ | 296 | /* Wait for IRQ, then read PIH irq status (also blocking) */ |
297 | wait_for_completion_interruptible(&irq_event); | 297 | wait_for_completion_interruptible(&irq_event); |
298 | 298 | ||
299 | ret = twl4030_i2c_read_u8(TWL4030_MODULE_PIH, &pih_isr, | 299 | ret = twl_i2c_read_u8(TWL4030_MODULE_PIH, &pih_isr, |
300 | REG_PIH_ISR_P1); | 300 | REG_PIH_ISR_P1); |
301 | if (ret) { | 301 | if (ret) { |
302 | pr_warning("twl4030: I2C error %d reading PIH ISR\n", | 302 | pr_warning("twl4030: I2C error %d reading PIH ISR\n", |
@@ -396,7 +396,7 @@ static int twl4030_init_sih_modules(unsigned line) | |||
396 | if (sih->irq_lines <= line) | 396 | if (sih->irq_lines <= line) |
397 | continue; | 397 | continue; |
398 | 398 | ||
399 | status = twl4030_i2c_write(sih->module, buf, | 399 | status = twl_i2c_write(sih->module, buf, |
400 | sih->mask[line].imr_offset, sih->bytes_ixr); | 400 | sih->mask[line].imr_offset, sih->bytes_ixr); |
401 | if (status < 0) | 401 | if (status < 0) |
402 | pr_err("twl4030: err %d initializing %s %s\n", | 402 | pr_err("twl4030: err %d initializing %s %s\n", |
@@ -410,7 +410,7 @@ static int twl4030_init_sih_modules(unsigned line) | |||
410 | * And for PWR_INT it's not documented... | 410 | * And for PWR_INT it's not documented... |
411 | */ | 411 | */ |
412 | if (sih->set_cor) { | 412 | if (sih->set_cor) { |
413 | status = twl4030_i2c_write_u8(sih->module, | 413 | status = twl_i2c_write_u8(sih->module, |
414 | TWL4030_SIH_CTRL_COR_MASK, | 414 | TWL4030_SIH_CTRL_COR_MASK, |
415 | sih->control_offset); | 415 | sih->control_offset); |
416 | if (status < 0) | 416 | if (status < 0) |
@@ -438,14 +438,14 @@ static int twl4030_init_sih_modules(unsigned line) | |||
438 | * uncommon with PWR_INT.PWRON. | 438 | * uncommon with PWR_INT.PWRON. |
439 | */ | 439 | */ |
440 | for (j = 0; j < 2; j++) { | 440 | for (j = 0; j < 2; j++) { |
441 | status = twl4030_i2c_read(sih->module, rxbuf, | 441 | status = twl_i2c_read(sih->module, rxbuf, |
442 | sih->mask[line].isr_offset, sih->bytes_ixr); | 442 | sih->mask[line].isr_offset, sih->bytes_ixr); |
443 | if (status < 0) | 443 | if (status < 0) |
444 | pr_err("twl4030: err %d initializing %s %s\n", | 444 | pr_err("twl4030: err %d initializing %s %s\n", |
445 | status, sih->name, "ISR"); | 445 | status, sih->name, "ISR"); |
446 | 446 | ||
447 | if (!sih->set_cor) | 447 | if (!sih->set_cor) |
448 | status = twl4030_i2c_write(sih->module, buf, | 448 | status = twl_i2c_write(sih->module, buf, |
449 | sih->mask[line].isr_offset, | 449 | sih->mask[line].isr_offset, |
450 | sih->bytes_ixr); | 450 | sih->bytes_ixr); |
451 | /* else COR=1 means read sufficed. | 451 | /* else COR=1 means read sufficed. |
@@ -514,7 +514,7 @@ static void twl4030_sih_do_mask(struct work_struct *work) | |||
514 | return; | 514 | return; |
515 | 515 | ||
516 | /* write the whole mask ... simpler than subsetting it */ | 516 | /* write the whole mask ... simpler than subsetting it */ |
517 | status = twl4030_i2c_write(sih->module, imr.bytes, | 517 | status = twl_i2c_write(sih->module, imr.bytes, |
518 | sih->mask[irq_line].imr_offset, sih->bytes_ixr); | 518 | sih->mask[irq_line].imr_offset, sih->bytes_ixr); |
519 | if (status) | 519 | if (status) |
520 | pr_err("twl4030: %s, %s --> %d\n", __func__, | 520 | pr_err("twl4030: %s, %s --> %d\n", __func__, |
@@ -545,7 +545,7 @@ static void twl4030_sih_do_edge(struct work_struct *work) | |||
545 | * any processor on the other IRQ line, EDR registers are | 545 | * any processor on the other IRQ line, EDR registers are |
546 | * shared. | 546 | * shared. |
547 | */ | 547 | */ |
548 | status = twl4030_i2c_read(sih->module, bytes + 1, | 548 | status = twl_i2c_read(sih->module, bytes + 1, |
549 | sih->edr_offset, sih->bytes_edr); | 549 | sih->edr_offset, sih->bytes_edr); |
550 | if (status) { | 550 | if (status) { |
551 | pr_err("twl4030: %s, %s --> %d\n", __func__, | 551 | pr_err("twl4030: %s, %s --> %d\n", __func__, |
@@ -579,7 +579,7 @@ static void twl4030_sih_do_edge(struct work_struct *work) | |||
579 | } | 579 | } |
580 | 580 | ||
581 | /* Write */ | 581 | /* Write */ |
582 | status = twl4030_i2c_write(sih->module, bytes, | 582 | status = twl_i2c_write(sih->module, bytes, |
583 | sih->edr_offset, sih->bytes_edr); | 583 | sih->edr_offset, sih->bytes_edr); |
584 | if (status) | 584 | if (status) |
585 | pr_err("twl4030: %s, %s --> %d\n", __func__, | 585 | pr_err("twl4030: %s, %s --> %d\n", __func__, |
@@ -664,7 +664,7 @@ static inline int sih_read_isr(const struct sih *sih) | |||
664 | /* FIXME need retry-on-error ... */ | 664 | /* FIXME need retry-on-error ... */ |
665 | 665 | ||
666 | isr.word = 0; | 666 | isr.word = 0; |
667 | status = twl4030_i2c_read(sih->module, isr.bytes, | 667 | status = twl_i2c_read(sih->module, isr.bytes, |
668 | sih->mask[irq_line].isr_offset, sih->bytes_ixr); | 668 | sih->mask[irq_line].isr_offset, sih->bytes_ixr); |
669 | 669 | ||
670 | return (status < 0) ? status : le32_to_cpu(isr.word); | 670 | return (status < 0) ? status : le32_to_cpu(isr.word); |