From patchwork Wed Aug 1 10:31:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: archit taneja X-Patchwork-Id: 1263711 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 5C987DF215 for ; Wed, 1 Aug 2012 10:33:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753722Ab2HAKdH (ORCPT ); Wed, 1 Aug 2012 06:33:07 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:50134 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752923Ab2HAKdG (ORCPT ); Wed, 1 Aug 2012 06:33:06 -0400 Received: from dlelxv30.itg.ti.com ([172.17.2.17]) by devils.ext.ti.com (8.13.7/8.13.7) with ESMTP id q71AX5wZ005341; Wed, 1 Aug 2012 05:33:05 -0500 Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv30.itg.ti.com (8.13.8/8.13.8) with ESMTP id q71AX5MY002675; Wed, 1 Aug 2012 05:33:05 -0500 Received: from dlelxv23.itg.ti.com (172.17.1.198) by dfle73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.1.323.3; Wed, 1 Aug 2012 05:33:05 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlelxv23.itg.ti.com (8.13.8/8.13.8) with ESMTP id q71AX565015794; Wed, 1 Aug 2012 05:33:05 -0500 Received: from localhost (a0393947pc.apr.dhcp.ti.com [172.24.137.248]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id q71AX3r26787; Wed, 1 Aug 2012 05:33:03 -0500 (CDT) From: Archit Taneja To: CC: , , , , Archit Taneja Subject: [RFC 03/17] OMAPDSS: HDMI: Remove omap_dss_device argument from hdmi_compute_pll Date: Wed, 1 Aug 2012 16:01:14 +0530 Message-ID: <1343817088-29645-4-git-send-email-archit@ti.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343817088-29645-1-git-send-email-archit@ti.com> References: <1343817088-29645-1-git-send-email-archit@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The clock related info for DSS modules is not tied anymore to a panel's omap_dss_device struct. It's now passed via platform data. The function hdmi_compute_pll() do not need the omap_dss_device argument to retieve these clocks. They use the api dss_get_platform_clock_config() get the clocks. Remove the omap_dss_device argument from hdmi_compute_pll() Signed-off-by: Archit Taneja --- drivers/video/omap2/dss/hdmi.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index 16b2386..6635b09 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c @@ -405,8 +405,7 @@ unsigned long hdmi_get_pixel_clock(void) return hdmi.ip_data.cfg.timings.pixel_clock * 1000; } -static void hdmi_compute_pll(struct omap_dss_device *dssdev, int phy, - struct hdmi_pll_info *pi) +static void hdmi_compute_pll(int phy, struct hdmi_pll_info *pi) { const struct omapdss_clock_config *clks; unsigned long clkin, refclk; @@ -491,7 +490,7 @@ static int hdmi_power_on(struct omap_dss_device *dssdev) } phy = p->pixel_clock; - hdmi_compute_pll(dssdev, phy, &hdmi.ip_data.pll_data); + hdmi_compute_pll(phy, &hdmi.ip_data.pll_data); hdmi.ip_data.ops->video_disable(&hdmi.ip_data);