Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 344589
b: refs/heads/master
c: b2c7d54
h: refs/heads/master
i:
  344587: 6d461eb
v: v3
  • Loading branch information
Tomi Valkeinen committed Oct 24, 2012
1 parent bfd77da commit afc7f4c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 998c336d4c7183301ed6a6ca93952f63e3cf694f
refs/heads/master: b2c7d54f72c1c588e8851c882f0465705f5e9e55
9 changes: 8 additions & 1 deletion trunk/drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ const char *dss_get_default_display_name(void)
return core.default_display_name;
}

enum omapdss_version omapdss_get_version(void)
{
struct omap_dss_board_info *pdata = core.pdev->dev.platform_data;
return pdata->version;
}
EXPORT_SYMBOL(omapdss_get_version);

/* REGULATORS */

struct regulator *dss_get_vdds_dsi(void)
Expand Down Expand Up @@ -232,7 +239,7 @@ static int __init omap_dss_probe(struct platform_device *pdev)

core.pdev = pdev;

dss_features_init(pdata->version);
dss_features_init(omapdss_get_version());

dss_apply_init();

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/video/omap2/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,6 @@ static const struct dispc_features omap44xx_dispc_feats __initconst = {

static int __init dispc_init_features(struct platform_device *pdev)
{
struct omap_dss_board_info *pdata = pdev->dev.platform_data;
const struct dispc_features *src;
struct dispc_features *dst;

Expand All @@ -4108,7 +4107,7 @@ static int __init dispc_init_features(struct platform_device *pdev)
return -ENOMEM;
}

switch (pdata->version) {
switch (omapdss_get_version()) {
case OMAPDSS_VER_OMAP24xx:
src = &omap24xx_dispc_feats;
break;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/video/omap2/dss/dss.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,6 @@ static const struct dss_features omap54xx_dss_feats __initconst = {

static int __init dss_init_features(struct platform_device *pdev)
{
struct omap_dss_board_info *pdata = pdev->dev.platform_data;
const struct dss_features *src;
struct dss_features *dst;

Expand All @@ -803,7 +802,7 @@ static int __init dss_init_features(struct platform_device *pdev)
return -ENOMEM;
}

switch (pdata->version) {
switch (omapdss_get_version()) {
case OMAPDSS_VER_OMAP24xx:
src = &omap24xx_dss_feats;
break;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/video/omap2/dss/hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,6 @@ static void hdmi_runtime_put(void)

static int __init hdmi_init_display(struct omap_dss_device *dssdev)
{
struct omap_dss_board_info *pdata = hdmi.pdev->dev.platform_data;
int r;

struct gpio gpios[] = {
Expand All @@ -334,7 +333,7 @@ static int __init hdmi_init_display(struct omap_dss_device *dssdev)

DSSDBG("init_display\n");

dss_init_hdmi_ip_ops(&hdmi.ip_data, pdata->version);
dss_init_hdmi_ip_ops(&hdmi.ip_data, omapdss_get_version());

if (hdmi.vdda_hdmi_dac_reg == NULL) {
struct regulator *reg;
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/video/omapdss.h
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ struct omap_dss_driver {

};

enum omapdss_version omapdss_get_version(void);

int omap_dss_register_driver(struct omap_dss_driver *);
void omap_dss_unregister_driver(struct omap_dss_driver *);

Expand Down

0 comments on commit afc7f4c

Please sign in to comment.