Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
a69ac9ea
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a69ac9ea
编写于
10月 11, 2012
作者:
R
Rob Clark
提交者:
Rob Clark
11月 30, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drm/gma500: drm_connector_property -> drm_object_property
Signed-off-by:
N
Rob Clark
<
rob@ti.com
>
上级
7136470d
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
39 addition
and
39 deletion
+39
-39
drivers/gpu/drm/gma500/cdv_device.c
drivers/gpu/drm/gma500/cdv_device.c
+2
-2
drivers/gpu/drm/gma500/cdv_intel_dp.c
drivers/gpu/drm/gma500/cdv_intel_dp.c
+1
-1
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
+3
-3
drivers/gpu/drm/gma500/cdv_intel_lvds.c
drivers/gpu/drm/gma500/cdv_intel_lvds.c
+5
-5
drivers/gpu/drm/gma500/mdfld_dsi_output.c
drivers/gpu/drm/gma500/mdfld_dsi_output.c
+5
-5
drivers/gpu/drm/gma500/mdfld_intel_display.c
drivers/gpu/drm/gma500/mdfld_intel_display.c
+1
-1
drivers/gpu/drm/gma500/oaktrail_crtc.c
drivers/gpu/drm/gma500/oaktrail_crtc.c
+1
-1
drivers/gpu/drm/gma500/oaktrail_lvds.c
drivers/gpu/drm/gma500/oaktrail_lvds.c
+4
-4
drivers/gpu/drm/gma500/psb_intel_lvds.c
drivers/gpu/drm/gma500/psb_intel_lvds.c
+5
-5
drivers/gpu/drm/gma500/psb_intel_sdvo.c
drivers/gpu/drm/gma500/psb_intel_sdvo.c
+12
-12
未找到文件。
drivers/gpu/drm/gma500/cdv_device.c
浏览文件 @
a69ac9ea
...
...
@@ -523,7 +523,7 @@ void cdv_intel_attach_force_audio_property(struct drm_connector *connector)
dev_priv
->
force_audio_property
=
prop
;
}
drm_
connector_attach_property
(
connector
,
prop
,
0
);
drm_
object_attach_property
(
&
connector
->
base
,
prop
,
0
);
}
...
...
@@ -553,7 +553,7 @@ void cdv_intel_attach_broadcast_rgb_property(struct drm_connector *connector)
dev_priv
->
broadcast_rgb_property
=
prop
;
}
drm_
connector_attach_property
(
connector
,
prop
,
0
);
drm_
object_attach_property
(
&
connector
->
base
,
prop
,
0
);
}
/* Cedarview */
...
...
drivers/gpu/drm/gma500/cdv_intel_dp.c
浏览文件 @
a69ac9ea
...
...
@@ -1650,7 +1650,7 @@ cdv_intel_dp_set_property(struct drm_connector *connector,
struct
cdv_intel_dp
*
intel_dp
=
encoder
->
dev_priv
;
int
ret
;
ret
=
drm_
connector_property_set_value
(
connector
,
property
,
val
);
ret
=
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
val
);
if
(
ret
)
return
ret
;
...
...
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
浏览文件 @
a69ac9ea
...
...
@@ -185,14 +185,14 @@ static int cdv_hdmi_set_property(struct drm_connector *connector,
return
-
1
;
}
if
(
drm_
connector_property_get_value
(
connector
,
if
(
drm_
object_property_get_value
(
&
connector
->
base
,
property
,
&
curValue
))
return
-
1
;
if
(
curValue
==
value
)
return
0
;
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
return
-
1
;
...
...
@@ -341,7 +341,7 @@ void cdv_hdmi_init(struct drm_device *dev,
connector
->
interlace_allowed
=
false
;
connector
->
doublescan_allowed
=
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
...
...
drivers/gpu/drm/gma500/cdv_intel_lvds.c
浏览文件 @
a69ac9ea
...
...
@@ -479,7 +479,7 @@ static int cdv_intel_lvds_set_property(struct drm_connector *connector,
return
-
1
;
}
if
(
drm_
connector_property_get_value
(
connector
,
if
(
drm_
object_property_get_value
(
&
connector
->
base
,
property
,
&
curValue
))
return
-
1
;
...
...
@@ -487,7 +487,7 @@ static int cdv_intel_lvds_set_property(struct drm_connector *connector,
if
(
curValue
==
value
)
return
0
;
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
return
-
1
;
...
...
@@ -502,7 +502,7 @@ static int cdv_intel_lvds_set_property(struct drm_connector *connector,
return
-
1
;
}
}
else
if
(
!
strcmp
(
property
->
name
,
"backlight"
)
&&
encoder
)
{
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
return
-
1
;
...
...
@@ -671,10 +671,10 @@ void cdv_intel_lvds_init(struct drm_device *dev,
connector
->
doublescan_allowed
=
false
;
/*Attach connector properties*/
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev_priv
->
backlight_property
,
BRIGHTNESS_MAX_LEVEL
);
...
...
drivers/gpu/drm/gma500/mdfld_dsi_output.c
浏览文件 @
a69ac9ea
...
...
@@ -265,13 +265,13 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector,
goto
set_prop_error
;
}
if
(
drm_
connector_property_get_value
(
connector
,
property
,
&
val
))
if
(
drm_
object_property_get_value
(
&
connector
->
base
,
property
,
&
val
))
goto
set_prop_error
;
if
(
val
==
value
)
goto
set_prop_done
;
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
goto
set_prop_error
;
...
...
@@ -296,7 +296,7 @@ static int mdfld_dsi_connector_set_property(struct drm_connector *connector,
}
}
}
else
if
(
!
strcmp
(
property
->
name
,
"backlight"
)
&&
encoder
)
{
if
(
drm_
connector_property_set_value
(
connector
,
property
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
goto
set_prop_error
;
else
...
...
@@ -572,10 +572,10 @@ void mdfld_dsi_output_init(struct drm_device *dev,
connector
->
doublescan_allowed
=
false
;
/*attach properties*/
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev_priv
->
backlight_property
,
MDFLD_DSI_BRIGHTNESS_MAX_LEVEL
);
...
...
drivers/gpu/drm/gma500/mdfld_intel_display.c
浏览文件 @
a69ac9ea
...
...
@@ -820,7 +820,7 @@ static int mdfld_crtc_mode_set(struct drm_crtc *crtc,
REG_WRITE
(
map
->
pos
,
0
);
if
(
psb_intel_encoder
)
drm_
connector_property_get_value
(
connector
,
drm_
object_property_get_value
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
&
scalingType
);
if
(
scalingType
==
DRM_MODE_SCALE_NO_SCALE
)
{
...
...
drivers/gpu/drm/gma500/oaktrail_crtc.c
浏览文件 @
a69ac9ea
...
...
@@ -351,7 +351,7 @@ static int oaktrail_crtc_mode_set(struct drm_crtc *crtc,
(
mode
->
crtc_vdisplay
-
1
));
if
(
psb_intel_encoder
)
drm_
connector_property_get_value
(
connector
,
drm_
object_property_get_value
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
&
scalingType
);
if
(
scalingType
==
DRM_MODE_SCALE_NO_SCALE
)
{
...
...
drivers/gpu/drm/gma500/oaktrail_lvds.c
浏览文件 @
a69ac9ea
...
...
@@ -133,8 +133,8 @@ static void oaktrail_lvds_mode_set(struct drm_encoder *encoder,
return
;
}
drm_
connector
_property_get_value
(
connector
,
drm_
object
_property_get_value
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
&
v
);
...
...
@@ -363,10 +363,10 @@ void oaktrail_lvds_init(struct drm_device *dev,
connector
->
interlace_allowed
=
false
;
connector
->
doublescan_allowed
=
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev_priv
->
backlight_property
,
BRIGHTNESS_MAX_LEVEL
);
...
...
drivers/gpu/drm/gma500/psb_intel_lvds.c
浏览文件 @
a69ac9ea
...
...
@@ -603,7 +603,7 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
goto
set_prop_error
;
}
if
(
drm_
connector_property_get_value
(
connector
,
if
(
drm_
object_property_get_value
(
&
connector
->
base
,
property
,
&
curval
))
goto
set_prop_error
;
...
...
@@ -611,7 +611,7 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
if
(
curval
==
value
)
goto
set_prop_done
;
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
goto
set_prop_error
;
...
...
@@ -626,7 +626,7 @@ int psb_intel_lvds_set_property(struct drm_connector *connector,
goto
set_prop_error
;
}
}
else
if
(
!
strcmp
(
property
->
name
,
"backlight"
))
{
if
(
drm_
connector_property_set_value
(
connector
,
if
(
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
value
))
goto
set_prop_error
;
...
...
@@ -746,10 +746,10 @@ void psb_intel_lvds_init(struct drm_device *dev,
connector
->
doublescan_allowed
=
false
;
/*Attach connector properties*/
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev
->
mode_config
.
scaling_mode_property
,
DRM_MODE_SCALE_FULLSCREEN
);
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
dev_priv
->
backlight_property
,
BRIGHTNESS_MAX_LEVEL
);
...
...
drivers/gpu/drm/gma500/psb_intel_sdvo.c
浏览文件 @
a69ac9ea
...
...
@@ -1694,7 +1694,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector,
uint8_t
cmd
;
int
ret
;
ret
=
drm_
connector_property_set_value
(
connector
,
property
,
val
);
ret
=
drm_
object_property_set_value
(
&
connector
->
base
,
property
,
val
);
if
(
ret
)
return
ret
;
...
...
@@ -1749,7 +1749,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector,
}
else
if
(
IS_TV_OR_LVDS
(
psb_intel_sdvo_connector
))
{
temp_value
=
val
;
if
(
psb_intel_sdvo_connector
->
left
==
property
)
{
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
right
,
val
);
if
(
psb_intel_sdvo_connector
->
left_margin
==
temp_value
)
return
0
;
...
...
@@ -1761,7 +1761,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector,
cmd
=
SDVO_CMD_SET_OVERSCAN_H
;
goto
set_value
;
}
else
if
(
psb_intel_sdvo_connector
->
right
==
property
)
{
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
left
,
val
);
if
(
psb_intel_sdvo_connector
->
right_margin
==
temp_value
)
return
0
;
...
...
@@ -1773,7 +1773,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector,
cmd
=
SDVO_CMD_SET_OVERSCAN_H
;
goto
set_value
;
}
else
if
(
psb_intel_sdvo_connector
->
top
==
property
)
{
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
bottom
,
val
);
if
(
psb_intel_sdvo_connector
->
top_margin
==
temp_value
)
return
0
;
...
...
@@ -1785,7 +1785,7 @@ psb_intel_sdvo_set_property(struct drm_connector *connector,
cmd
=
SDVO_CMD_SET_OVERSCAN_V
;
goto
set_value
;
}
else
if
(
psb_intel_sdvo_connector
->
bottom
==
property
)
{
drm_
connector_property_set_value
(
connector
,
drm_
object_property_set_value
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
top
,
val
);
if
(
psb_intel_sdvo_connector
->
bottom_margin
==
temp_value
)
return
0
;
...
...
@@ -2286,7 +2286,7 @@ static bool psb_intel_sdvo_tv_create_property(struct psb_intel_sdvo *psb_intel_s
i
,
tv_format_names
[
psb_intel_sdvo_connector
->
tv_format_supported
[
i
]]);
psb_intel_sdvo
->
tv_format_index
=
psb_intel_sdvo_connector
->
tv_format_supported
[
0
];
drm_
connector_attach_property
(
&
psb_intel_sdvo_connector
->
base
.
base
,
drm_
object_attach_property
(
&
psb_intel_sdvo_connector
->
base
.
base
.
base
,
psb_intel_sdvo_connector
->
tv_format
,
0
);
return
true
;
...
...
@@ -2302,7 +2302,7 @@ static bool psb_intel_sdvo_tv_create_property(struct psb_intel_sdvo *psb_intel_s
psb_intel_sdvo_connector->name = \
drm_property_create_range(dev, 0, #name, 0, data_value[0]); \
if (!psb_intel_sdvo_connector->name) return false; \
drm_
connector_attach_property(connector
, \
drm_
object_attach_property(&connector->base
, \
psb_intel_sdvo_connector->name, \
psb_intel_sdvo_connector->cur_##name); \
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,
if
(
!
psb_intel_sdvo_connector
->
left
)
return
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
left
,
psb_intel_sdvo_connector
->
left_margin
);
...
...
@@ -2348,7 +2348,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo,
if
(
!
psb_intel_sdvo_connector
->
right
)
return
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
right
,
psb_intel_sdvo_connector
->
right_margin
);
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,
if
(
!
psb_intel_sdvo_connector
->
top
)
return
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
top
,
psb_intel_sdvo_connector
->
top_margin
);
...
...
@@ -2384,7 +2384,7 @@ psb_intel_sdvo_create_enhance_property_tv(struct psb_intel_sdvo *psb_intel_sdvo,
if
(
!
psb_intel_sdvo_connector
->
bottom
)
return
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
bottom
,
psb_intel_sdvo_connector
->
bottom_margin
);
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,
if
(
!
psb_intel_sdvo_connector
->
dot_crawl
)
return
false
;
drm_
connector_attach_property
(
connector
,
drm_
object_attach_property
(
&
connector
->
base
,
psb_intel_sdvo_connector
->
dot_crawl
,
psb_intel_sdvo_connector
->
cur_dot_crawl
);
DRM_DEBUG_KMS
(
"dot crawl: current %d
\n
"
,
response
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录