From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Date: Wed, 03 Apr 2013 01:30:53 +0000 Subject: [PATCH 2/2] video: mxsfb: Use of_get_display_gpio_enable() Message-Id: <1364952653-7567-2-git-send-email-festevam@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev@vger.kernel.org From: Fabio Estevam Use of_get_display_gpio_enable() helper to retrieve the GPIO from devicetree that turns on the display. This lets the code smaller and cleaner. Signed-off-by: Fabio Estevam --- drivers/video/Kconfig | 1 + drivers/video/mxsfb.c | 21 ++++----------------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig index 7607f42..810f990 100644 --- a/drivers/video/Kconfig +++ b/drivers/video/Kconfig @@ -2445,6 +2445,7 @@ config FB_MXS select FB_CFB_IMAGEBLIT select FB_MODE_HELPERS select OF_VIDEOMODE + select OF_DISPLAY_ENABLE_GPIO help Framebuffer support for the MXS SoC. diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index eac7c1a..50b041a9 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -51,6 +51,7 @@ #include #include #include