Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce3b64f5 authored by Jean-Christophe PLAGNIOL-VILLARD's avatar Jean-Christophe PLAGNIOL-VILLARD Committed by Tomi Valkeinen
Browse files

video: atmel_lcdfb: pass the pdata as params



so we can use have list gpio as example (probe via DT)

Signed-off-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 42110e91
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -389,7 +389,7 @@ static struct fb_monspecs at91fb_default_stn_monspecs = {
					| ATMEL_LCDC_IFWIDTH_4 \
					| ATMEL_LCDC_SCANMOD_SINGLE)

static void at91_lcdc_stn_power_control(int on)
static void at91_lcdc_stn_power_control(struct atmel_lcdfb_pdata *pdata, int on)
{
	/* backlight */
	if (on) {	/* power up */
@@ -445,7 +445,7 @@ static struct fb_monspecs at91fb_default_tft_monspecs = {
					| ATMEL_LCDC_DISTYPE_TFT    \
					| ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)

static void at91_lcdc_tft_power_control(int on)
static void at91_lcdc_tft_power_control(struct atmel_lcdfb_pdata *pdata, int on)
{
	if (on)
		at91_set_gpio_value(AT91_PIN_PA12, 0);	/* power up */
+1 −1
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ static struct fb_monspecs at91fb_default_monspecs = {
					| ATMEL_LCDC_DISTYPE_TFT \
					| ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)

static void at91_lcdc_power_control(int on)
static void at91_lcdc_power_control(struct atmel_lcdfb_pdata *pdata, int on)
{
	at91_set_gpio_value(AT91_PIN_PA30, on);
}
+1 −1
Original line number Diff line number Diff line
@@ -170,7 +170,7 @@ static struct fb_monspecs at91fb_default_monspecs = {
					| ATMEL_LCDC_DISTYPE_TFT \
					| ATMEL_LCDC_CLKMOD_ALWAYSACTIVE)

static void at91_lcdc_power_control(int on)
static void at91_lcdc_power_control(struct atmel_lcdfb_pdata *pdata, int on)
{
	if (on)
		at91_set_gpio_value(AT91_PIN_PC1, 0);	/* power up */
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ static struct atmel_lcdfb_pdata __initdata atevklcd10x_lcdc_data = {
};
#endif

static void atevklcd10x_lcdc_power_control(int on)
static void atevklcd10x_lcdc_power_control(struct atmel_lcdfb_pdata *pdata, int on)
{
	gpio_set_value(GPIO_PIN_PB(15), on);
}
+1 −1
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static inline void atmel_lcdfb_power_control(struct atmel_lcdfb_info *sinfo, int
	struct atmel_lcdfb_pdata *pdata = &sinfo->pdata;

	if (pdata->atmel_lcdfb_power_control)
		pdata->atmel_lcdfb_power_control(on);
		pdata->atmel_lcdfb_power_control(pdata, on);
}

static struct fb_fix_screeninfo atmel_lcdfb_fix __initdata = {
Loading