From patchwork Wed Apr 3 01:30:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 2383491 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id EF0DD3FDDA for ; Wed, 3 Apr 2013 01:39:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756493Ab3DCBj1 (ORCPT ); Tue, 2 Apr 2013 21:39:27 -0400 Received: from mail-gh0-f170.google.com ([209.85.160.170]:33382 "EHLO mail-gh0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756197Ab3DCBj0 (ORCPT ); Tue, 2 Apr 2013 21:39:26 -0400 Received: by mail-gh0-f170.google.com with SMTP id z2so179298ghb.15 for ; Tue, 02 Apr 2013 18:39:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=AWLbiPjp61ovVOK9rcSmLLRiVxZv6JxwBoBbPgG8lE8=; b=qKULj8SOWtX4ybMZ/ixod6xkdQ2ZKkHqJ9j7g4O0cC5qiBtx15IpPLGTCUDFtS9+Ll sJUr3rO74oSo4Y2MFhsk56OS+V2KRZxXdkeGGj6jTGwcaJ+MlMi4379ruyGh4TgqIlw3 BLXc6swf4Uc8L+KYCIJ9qPBpgUAzRzw6Ep9hsQ7bri7jRsi/cTwlwF2vdpeWojB09Glq mi4yos2R5ITfu7Op8EfHE0bqTUv1HHZhFTHaggObjH0/N2NYO7xFs2eoWrcN7231xtLx aTLkeioFX82YVeNVmP0RniQ8cOhgsnwRzWEJ13MnKO9Y09RTJd8ODnZzBxI0UxsNNvhZ JggA== X-Received: by 10.236.142.51 with SMTP id h39mr17870122yhj.170.1364952690333; Tue, 02 Apr 2013 18:31:30 -0700 (PDT) Received: from localhost.localdomain ([187.64.220.204]) by mx.google.com with ESMTPS id u19sm7070745yhh.15.2013.04.02.18.31.28 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Apr 2013 18:31:29 -0700 (PDT) From: Fabio Estevam To: shawn.guo@linaro.org Cc: kernel@pengutronix.de, marex@denx.de, linux-fbdev@vger.kernel.org, FlorianSchandinat@gmx.de, Fabio Estevam Subject: [PATCH 2/2] video: mxsfb: Use of_get_display_gpio_enable() Date: Tue, 2 Apr 2013 22:30:53 -0300 Message-Id: <1364952653-7567-2-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364952653-7567-1-git-send-email-festevam@gmail.com> References: <1364952653-7567-1-git-send-email-festevam@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: 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