diff options
author | Jyri Sarha <jsarha@ti.com> | 2014-06-27 16:47:00 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2014-11-26 10:45:29 +0200 |
commit | 945514b5e1e5f93172a67d4b19b7fce8c8c1fead (patch) | |
tree | 0991c1530a24d10904c25e7b0948cfa3c8484391 /drivers/video/fbdev/omap2/dss/hdmi5.c | |
parent | 58652163f6cad5180aaa1e82612c1f87cd2e22b8 (diff) | |
download | op-kernel-dev-945514b5e1e5f93172a67d4b19b7fce8c8c1fead.zip op-kernel-dev-945514b5e1e5f93172a67d4b19b7fce8c8c1fead.tar.gz |
OMAPDSS: hdmi: Make hdmi structure public
Unify the private anonymous struct in hdmi4.c and hdmi5.c, name it as
struct omap_hdmi, and make it public in hdmi.h.
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/fbdev/omap2/dss/hdmi5.c')
-rw-r--r-- | drivers/video/fbdev/omap2/dss/hdmi5.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/drivers/video/fbdev/omap2/dss/hdmi5.c b/drivers/video/fbdev/omap2/dss/hdmi5.c index 67facf8..6e5894f 100644 --- a/drivers/video/fbdev/omap2/dss/hdmi5.c +++ b/drivers/video/fbdev/omap2/dss/hdmi5.c @@ -43,24 +43,7 @@ #include "dss.h" #include "dss_features.h" -static struct { - struct mutex lock; - struct platform_device *pdev; - - struct hdmi_wp_data wp; - struct hdmi_pll_data pll; - struct hdmi_phy_data phy; - struct hdmi_core_data core; - - struct hdmi_config cfg; - - struct regulator *vdda_reg; - struct clk *sys_clk; - - bool core_enabled; - - struct omap_dss_device output; -} hdmi; +static struct omap_hdmi hdmi; static int hdmi_runtime_get(void) { @@ -696,6 +679,7 @@ static int omapdss_hdmihw_probe(struct platform_device *pdev) int irq; hdmi.pdev = pdev; + dev_set_drvdata(&pdev->dev, &hdmi); mutex_init(&hdmi.lock); |