Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM - shmobile: Armadillo800EVA: Move st1232 reset pin handling

We no longer need to set up the reset pin for the st1232 in the board
code, but can pass the GPIO number via the platform data to the driver.
This results in a cleaner grouping of the device setup.

Signed-off-by: Bastian Hecht <hechtb+renesas@gmail.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Bastian Hecht and committed by
Dmitry Torokhov
cbaf7f80 e6a90810

+6 -1
+6 -1
arch/arm/mach-shmobile/board-armadillo800eva.c
··· 24 24 #include <linux/err.h> 25 25 #include <linux/kernel.h> 26 26 #include <linux/input.h> 27 + #include <linux/platform_data/st1232_pdata.h> 27 28 #include <linux/irq.h> 28 29 #include <linux/platform_device.h> 29 30 #include <linux/gpio.h> ··· 879 878 }; 880 879 881 880 /* I2C */ 881 + static struct st1232_pdata st1232_i2c0_pdata = { 882 + .reset_gpio = 166, 883 + }; 884 + 882 885 static struct i2c_board_info i2c0_devices[] = { 883 886 { 884 887 I2C_BOARD_INFO("st1232-ts", 0x55), 885 888 .irq = evt2irq(0x0340), 889 + .platform_data = &st1232_i2c0_pdata, 886 890 }, 887 891 { 888 892 I2C_BOARD_INFO("wm8978", 0x1a), ··· 1011 1005 1012 1006 /* Touchscreen */ 1013 1007 gpio_request(GPIO_FN_IRQ10, NULL); /* TP_INT */ 1014 - gpio_request_one(GPIO_PORT166, GPIOF_OUT_INIT_HIGH, NULL); /* TP_RST_B */ 1015 1008 1016 1009 /* GETHER */ 1017 1010 gpio_request(GPIO_FN_ET_CRS, NULL);