diff options
Diffstat (limited to 'drivers/gpu/drm/gma500/psb_intel_sdvo.c')
-rw-r--r-- | drivers/gpu/drm/gma500/psb_intel_sdvo.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/gpu/drm/gma500/psb_intel_sdvo.c b/drivers/gpu/drm/gma500/psb_intel_sdvo.c index fc9292705db..a4cc777ab7a 100644 --- a/drivers/gpu/drm/gma500/psb_intel_sdvo.c +++ b/drivers/gpu/drm/gma500/psb_intel_sdvo.c | |||
@@ -1694,7 +1694,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector, | |||
1694 | uint8_t cmd; | 1694 | uint8_t cmd; |
1695 | int ret; | 1695 | int ret; |
1696 | 1696 | ||
1697 | ret = drm_connector_property_set_value(connector, property, val); | 1697 | ret = drm_object_property_set_value(&connector->base, property, val); |
1698 | if (ret) | 1698 | if (ret) |
1699 | return ret; | 1699 | return ret; |
1700 | 1700 | ||
@@ -1749,7 +1749,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector, | |||
1749 | } else if (IS_TV_OR_LVDS(psb_intel_sdvo_connector)) { | 1749 | } else if (IS_TV_OR_LVDS(psb_intel_sdvo_connector)) { |
1750 | temp_value = val; | 1750 | temp_value = val; |
1751 | if (psb_intel_sdvo_connector->left == property) { | 1751 | if (psb_intel_sdvo_connector->left == property) { |
1752 | drm_connector_property_set_value(connector, | 1752 | drm_object_property_set_value(&connector->base, |
1753 | psb_intel_sdvo_connector->right, val); | 1753 | psb_intel_sdvo_connector->right, val); |
1754 | if (psb_intel_sdvo_connector->left_margin == temp_value) | 1754 | if (psb_intel_sdvo_connector->left_margin == temp_value) |
1755 | return 0; | 1755 | return 0; |
@@ -1761,7 +1761,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector, | |||
1761 | cmd = SDVO_CMD_SET_OVERSCAN_H; | 1761 | cmd = SDVO_CMD_SET_OVERSCAN_H; |
1762 | goto set_value; | 1762 | goto set_value; |
1763 | } else if (psb_intel_sdvo_connector->right == property) { | 1763 | } else if (psb_intel_sdvo_connector->right == property) { |
1764 | drm_connector_property_set_value(connector, | 1764 | drm_object_property_set_value(&connector->base, |
1765 | psb_intel_sdvo_connector->left, val); | 1765 | psb_intel_sdvo_connector->left, val); |
1766 | if (psb_intel_sdvo_connector->right_margin == temp_value) | 1766 | if (psb_intel_sdvo_connector->right_margin == temp_value) |
1767 | return 0; | 1767 | return 0; |
@@ -1773,7 +1773,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector, | |||
1773 | cmd = SDVO_CMD_SET_OVERSCAN_H; | 1773 | cmd = SDVO_CMD_SET_OVERSCAN_H; |
1774 | goto set_value; | 1774 | goto set_value; |
1775 | } else if (psb_intel_sdvo_connector->top == property) { | 1775 | } else if (psb_intel_sdvo_connector->top == property) { |
1776 | drm_connector_property_set_value(connector, | 1776 | drm_object_property_set_value(&connector->base, |
1777 | psb_intel_sdvo_connector->bottom, val); | 1777 | psb_intel_sdvo_connector->bottom, val); |
1778 | if (psb_intel_sdvo_connector->top_margin == temp_value) | 1778 | if (psb_intel_sdvo_connector->top_margin == temp_value) |
1779 | return 0; | 1779 | return 0; |
@@ -1785,7 +1785,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector, | |||
1785 | cmd = SDVO_CMD_SET_OVERSCAN_V; | 1785 | cmd = SDVO_CMD_SET_OVERSCAN_V; |
1786 | goto set_value; | 1786 | goto set_value; |
1787 | } else if (psb_intel_sdvo_connector->bottom == property) { | 1787 | } else if (psb_intel_sdvo_connector->bottom == property) { |
1788 | drm_connector_property_set_value(connector, | 1788 | drm_object_property_set_value(&connector->base, |
1789 | psb_intel_sdvo_connector->top, val); | 1789 | psb_intel_sdvo_connector->top, val); |
1790 | if (psb_intel_sdvo_connector->bottom_margin == temp_value) | 1790 | if (psb_intel_sdvo_connector->bottom_margin == temp_value) |
1791 | return 0; | 1791 | return 0; |
@@ -2286,7 +2286,7 @@ static bool psb_intel_sdvo_tv_create_property(struct psb_intel_sdvo *psb_intel_s | |||
2286 | i, tv_format_names[psb_intel_sdvo_connector->tv_format_supported[i]]); | 2286 | i, tv_format_names[psb_intel_sdvo_connector->tv_format_supported[i]]); |
2287 | 2287 | ||
2288 | psb_intel_sdvo->tv_format_index = psb_intel_sdvo_connector->tv_format_supported[0]; | 2288 | psb_intel_sdvo->tv_format_index = psb_intel_sdvo_connector->tv_format_supported[0]; |
2289 | drm_connector_attach_property(&psb_intel_sdvo_connector->base.base, | 2289 | drm_object_attach_property(&psb_intel_sdvo_connector->base.base.base, |
2290 | psb_intel_sdvo_connector->tv_format, 0); | 2290 | psb_intel_sdvo_connector->tv_format, 0); |
2291 | return true; | 2291 | return true; |
2292 | 2292 | ||
@@ -2302,7 +2302,7 @@ static bool psb_intel_sdvo_tv_create_property(struct psb_intel_sdvo *psb_intel_s | |||
2302 | psb_intel_sdvo_connector->name = \ | 2302 | psb_intel_sdvo_connector->name = \ |
2303 | drm_property_create_range(dev, 0, #name, 0, data_value[0]); \ | 2303 | drm_property_create_range(dev, 0, #name, 0, data_value[0]); \ |
2304 | if (!psb_intel_sdvo_connector->name) return false; \ | 2304 | if (!psb_intel_sdvo_connector->name) return false; \ |
2305 | drm_connector_attach_property(connector, \ | 2305 | drm_object_attach_property(&connector->base, \ |
2306 | psb_intel_sdvo_connector->name, \ | 2306 | psb_intel_sdvo_connector->name, \ |
2307 | psb_intel_sdvo_connector->cur_##name); \ | 2307 | psb_intel_sdvo_connector->cur_##name); \ |
2308 | DRM_DEBUG_KMS(#name ": max %d, default %d, current %d\n", \ | 2308 | DRM_DEBUG_KMS(#name ": max %d, default %d, current %d\n", \ |
@@ -2339,7 +2339,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo, | |||
2339 | if (!psb_intel_sdvo_connector->left) | 2339 | if (!psb_intel_sdvo_connector->left) |
2340 | return false; | 2340 | return false; |
2341 | 2341 | ||
2342 | drm_connector_attach_property(connector, | 2342 | drm_object_attach_property(&connector->base, |
2343 | psb_intel_sdvo_connector->left, | 2343 | psb_intel_sdvo_connector->left, |
2344 | psb_intel_sdvo_connector->left_margin); | 2344 | psb_intel_sdvo_connector->left_margin); |
2345 | 2345 | ||
@@ -2348,7 +2348,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo, | |||
2348 | if (!psb_intel_sdvo_connector->right) | 2348 | if (!psb_intel_sdvo_connector->right) |
2349 | return false; | 2349 | return false; |
2350 | 2350 | ||
2351 | drm_connector_attach_property(connector, | 2351 | drm_object_attach_property(&connector->base, |
2352 | psb_intel_sdvo_connector->right, | 2352 | psb_intel_sdvo_connector->right, |
2353 | psb_intel_sdvo_connector->right_margin); | 2353 | psb_intel_sdvo_connector->right_margin); |
2354 | DRM_DEBUG_KMS("h_overscan: max %d, " | 2354 | DRM_DEBUG_KMS("h_overscan: max %d, " |
@@ -2375,7 +2375,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo, | |||
2375 | if (!psb_intel_sdvo_connector->top) | 2375 | if (!psb_intel_sdvo_connector->top) |
2376 | return false; | 2376 | return false; |
2377 | 2377 | ||
2378 | drm_connector_attach_property(connector, | 2378 | drm_object_attach_property(&connector->base, |
2379 | psb_intel_sdvo_connector->top, | 2379 | psb_intel_sdvo_connector->top, |
2380 | psb_intel_sdvo_connector->top_margin); | 2380 | psb_intel_sdvo_connector->top_margin); |
2381 | 2381 | ||
@@ -2384,7 +2384,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo, | |||
2384 | if (!psb_intel_sdvo_connector->bottom) | 2384 | if (!psb_intel_sdvo_connector->bottom) |
2385 | return false; | 2385 | return false; |
2386 | 2386 | ||
2387 | drm_connector_attach_property(connector, | 2387 | drm_object_attach_property(&connector->base, |
2388 | psb_intel_sdvo_connector->bottom, | 2388 | psb_intel_sdvo_connector->bottom, |
2389 | psb_intel_sdvo_connector->bottom_margin); | 2389 | psb_intel_sdvo_connector->bottom_margin); |
2390 | DRM_DEBUG_KMS("v_overscan: max %d, " | 2390 | DRM_DEBUG_KMS("v_overscan: max %d, " |
@@ -2416,7 +2416,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo, | |||
2416 | if (!psb_intel_sdvo_connector->dot_crawl) | 2416 | if (!psb_intel_sdvo_connector->dot_crawl) |
2417 | return false; | 2417 | return false; |
2418 | 2418 | ||
2419 | drm_connector_attach_property(connector, | 2419 | drm_object_attach_property(&connector->base, |
2420 | psb_intel_sdvo_connector->dot_crawl, | 2420 | psb_intel_sdvo_connector->dot_crawl, |
2421 | psb_intel_sdvo_connector->cur_dot_crawl); | 2421 | psb_intel_sdvo_connector->cur_dot_crawl); |
2422 | DRM_DEBUG_KMS("dot crawl: current %d\n", response); | 2422 | DRM_DEBUG_KMS("dot crawl: current %d\n", response); |