ARM: OMAP2+: ads7846_init: put gpio_pendown into pdata if it's provided
authorIlya Yanok <yanok@emcraft.com>
Tue, 6 Mar 2012 00:11:02 +0000 (16:11 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 6 Mar 2012 00:11:02 +0000 (16:11 -0800)
commit7db74d5e327197289f2eb83c13f8d1b565a21467
tree5c6e7e365f27d2a06f5f13ce41ebbcf2e5d65393
parent17e22caccfcefc3f45ab5eaafe7279ada3b3fbd6
ARM: OMAP2+: ads7846_init: put gpio_pendown into pdata if it's provided

If platform data is provided by the caller gpio_pendown is put into
unused static ads7846_config structure and effectively has no effect.
Of course caller can set gpio_pendown field in platform data himself
but it seems natural to do this in ads7846_init to remove duplication.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Ilya Yanok <yanok@emcraft.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/common-board-devices.c
This page took 0.02647 seconds and 5 git commands to generate.