• M
    OMAP3: Keypad: Fix incorrect type initializer · bead4375
    Manjunath Kondaiah G 提交于
    The keypad matrix variable declaration is not matching
    with structure variable keymap declared in keypad_matrix.h.
    
    Due to this, following sparse warnings are generated with omap3_defconfig.
    
    arch/arm/mach-omap2/board-devkit8000.c:223:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-devkit8000.c:223:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-devkit8000.c:223:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-ldp.c:107:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-ldp.c:107:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-ldp.c:107:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-omap3evm.c:472:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-omap3evm.c:472:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-omap3evm.c:472:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-3430sdp.c:114:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-3430sdp.c:114:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-3430sdp.c:114:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-rx51-peripherals.c:248:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-rx51-peripherals.c:248:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-zoom-peripherals.c:88:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-zoom-peripherals.c:88:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-cm-t35.c:568:14: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-cm-t35.c:568:14:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-cm-t35.c:568:14:    got int static [toplevel] *<noident>
    
    arch/arm/mach-omap2/board-omap3stalker.c:415:13: warning: incorrect type in initializer (different signedness)
    arch/arm/mach-omap2/board-omap3stalker.c:415:13:    expected unsigned int const [usertype] *keymap
    arch/arm/mach-omap2/board-omap3stalker.c:415:13:    got int static [toplevel] *<noident>
    
    This patch modifies the variable keymap declaration as per declaration in matrix_keymap structure.
    Signed-off-by: NManjunath Kondaiah G <manjugk@ti.com>
    Cc: linux-input@vger.kernel.org
    Cc: Dmitry Torokhov <dtor@mail.ru>
    Cc: linux-arm-kernel@lists.infradead.org
    Cc: Nishanth Menon <nm@ti.com>
    Signed-off-by: NTony Lindgren <tony@atomide.com>
    bead4375
board-devkit8000.c 22.7 KB