From patchwork Wed Sep 19 08:30:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 1476261 Return-Path: X-Original-To: patchwork-linux-omap@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 C9C863FE79 for ; Wed, 19 Sep 2012 08:32:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754744Ab2ISIbm (ORCPT ); Wed, 19 Sep 2012 04:31:42 -0400 Received: from na3sys009aog108.obsmtp.com ([74.125.149.199]:41041 "EHLO na3sys009aog108.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111Ab2ISIbH (ORCPT ); Wed, 19 Sep 2012 04:31:07 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]) (using TLSv1) by na3sys009aob108.postini.com ([74.125.148.12]) with SMTP ID DSNKUFmCyq4BldvjLVFV3hHQxlRAlUDI25Ad@postini.com; Wed, 19 Sep 2012 01:31:06 PDT Received: by lbbgj3 with SMTP id gj3so618916lbb.19 for ; Wed, 19 Sep 2012 01:31:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=WYLTIoS91ASF9UAY0kdb/axUAypZtpYAoKIky8P9xZU=; b=KZWly3pHUH3nelSi9Qi0QfcB4N5mClFaUzU4BfvsMEK+v3yKDYwe9PZzizmJj5l/6o xebn1SwhKetj9dpkDgfSfWnUB3EIvqT2Ze0atpx5gN3vXZp6WUg1ulbqp4pgF9lH+2H4 cDQP+opYjyAg/7gPymB9i0WkqKlwj6eVFOTe6WcTGbgYywH8Cl4NDozesw/8x0sQDjjs yJzfjTGPFgQ4w7f9BDgrT4ucFTrhWcWWx8ZEDC7EsiNv57mqGQS6qtnhP9jkYAc6K1YW 4Uc+LHLq+32DPXvhmhWY5zLc/8E1ltqcJKBam3YNC7MY5iKigU6zncjapLT3VmVsFjqO qdzg== Received: by 10.112.26.196 with SMTP id n4mr719783lbg.129.1348043464635; Wed, 19 Sep 2012 01:31:04 -0700 (PDT) Received: from localhost.localdomain (a91-156-160-115.elisa-laajakaista.fi. [91.156.160.115]) by mx.google.com with ESMTPS id r8sm589958lba.15.2012.09.19.01.31.01 (version=SSLv3 cipher=OTHER); Wed, 19 Sep 2012 01:31:03 -0700 (PDT) From: Tomi Valkeinen To: archit@ti.com, linux-omap@vger.kernel.org, linux-fbdev@vger.kernel.org Cc: Tomi Valkeinen Subject: [PATCH 2/8] OMAPDSS: Add dss_get_default_display_name() Date: Wed, 19 Sep 2012 11:30:32 +0300 Message-Id: <1348043438-2624-3-git-send-email-tomi.valkeinen@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1348043438-2624-1-git-send-email-tomi.valkeinen@ti.com> References: <1348043438-2624-1-git-send-email-tomi.valkeinen@ti.com> X-Gm-Message-State: ALoCoQkd8MK34uLjZOeLsRIOTE7MQyIQdjj3yUdJaXA9/hgN1Pxh+HqfDFiV7ZPnWi51K+4QFbiT Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Add function dss_get_default_display_name() which returns the name of the default display, given from the board file or via module parameters. The default display name can be used by output drivers to decide which display is the wanted one. Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/dss/core.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 20c8bc8..315f557 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c @@ -57,6 +57,11 @@ bool dss_debug; module_param_named(debug, dss_debug, bool, 0644); #endif +const char *dss_get_default_display_name(void) +{ + return core.default_display_name; +} + /* REGULATORS */ struct regulator *dss_get_vdds_dsi(void)