diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-10-21 10:53:31 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2014-11-18 10:41:13 -0500 |
commit | 14f6aeb4e5da6b37bef6a70346260a69bd6b42d0 (patch) | |
tree | 7c020e029562baa7cb64b93eca3c042eb3747b6c | |
parent | a7ca2bcf2d2ef15c343a12f2a4c2e06380a0f495 (diff) |
ARM: davinci: Remove redundant casts
These casts to char* are unnecessary and slightly confusing, since
both operands actually have type const char*.
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
-rw-r--r-- | arch/arm/mach-davinci/board-da850-evm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-davinci/board-da850-evm.c b/arch/arm/mach-davinci/board-da850-evm.c index fa11415e906a..6b5a97da9fe3 100644 --- a/arch/arm/mach-davinci/board-da850-evm.c +++ b/arch/arm/mach-davinci/board-da850-evm.c | |||
@@ -452,8 +452,7 @@ static void da850_evm_ui_keys_init(unsigned gpio) | |||
452 | for (i = 0; i < DA850_N_UI_PB; i++) { | 452 | for (i = 0; i < DA850_N_UI_PB; i++) { |
453 | button = &da850_evm_ui_keys[i]; | 453 | button = &da850_evm_ui_keys[i]; |
454 | button->code = KEY_F8 - i; | 454 | button->code = KEY_F8 - i; |
455 | button->desc = (char *) | 455 | button->desc = da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; |
456 | da850_evm_ui_exp[DA850_EVM_UI_EXP_PB8 + i]; | ||
457 | button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; | 456 | button->gpio = gpio + DA850_EVM_UI_EXP_PB8 + i; |
458 | } | 457 | } |
459 | } | 458 | } |
@@ -628,15 +627,13 @@ static void da850_evm_bb_keys_init(unsigned gpio) | |||
628 | struct gpio_keys_button *button; | 627 | struct gpio_keys_button *button; |
629 | 628 | ||
630 | button = &da850_evm_bb_keys[0]; | 629 | button = &da850_evm_bb_keys[0]; |
631 | button->desc = (char *) | 630 | button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_PB1]; |
632 | da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_PB1]; | ||
633 | button->gpio = gpio + DA850_EVM_BB_EXP_USER_PB1; | 631 | button->gpio = gpio + DA850_EVM_BB_EXP_USER_PB1; |
634 | 632 | ||
635 | for (i = 0; i < DA850_N_BB_USER_SW; i++) { | 633 | for (i = 0; i < DA850_N_BB_USER_SW; i++) { |
636 | button = &da850_evm_bb_keys[i + 1]; | 634 | button = &da850_evm_bb_keys[i + 1]; |
637 | button->code = SW_LID + i; | 635 | button->code = SW_LID + i; |
638 | button->desc = (char *) | 636 | button->desc = da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_SW1 + i]; |
639 | da850_evm_bb_exp[DA850_EVM_BB_EXP_USER_SW1 + i]; | ||
640 | button->gpio = gpio + DA850_EVM_BB_EXP_USER_SW1 + i; | 637 | button->gpio = gpio + DA850_EVM_BB_EXP_USER_SW1 + i; |
641 | } | 638 | } |
642 | } | 639 | } |