mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/rockchip: set read only properties immutable
Signed-off-by: Algea Cao <algea.cao@rock-chips.com> Change-Id: I22bc515d1605b3bde74f230e96b99cd2ee26dce9
This commit is contained in:
@@ -2171,7 +2171,7 @@ dw_hdmi_rockchip_attach_properties(struct drm_connector *connector,
|
||||
drm_object_attach_property(&connector->base, prop, 0);
|
||||
}
|
||||
|
||||
prop = drm_property_create_range(connector->dev, 0,
|
||||
prop = drm_property_create_range(connector->dev, DRM_MODE_PROP_IMMUTABLE,
|
||||
"hdmi_color_depth_capacity",
|
||||
0, 0xff);
|
||||
if (prop) {
|
||||
@@ -2179,7 +2179,7 @@ dw_hdmi_rockchip_attach_properties(struct drm_connector *connector,
|
||||
drm_object_attach_property(&connector->base, prop, 0);
|
||||
}
|
||||
|
||||
prop = drm_property_create_range(connector->dev, 0,
|
||||
prop = drm_property_create_range(connector->dev, DRM_MODE_PROP_IMMUTABLE,
|
||||
"hdmi_output_mode_capacity",
|
||||
0, 0xf);
|
||||
if (prop) {
|
||||
@@ -2215,7 +2215,7 @@ dw_hdmi_rockchip_attach_properties(struct drm_connector *connector,
|
||||
drm_object_attach_property(&connector->base, prop, 0);
|
||||
}
|
||||
|
||||
prop = drm_property_create_enum(connector->dev, 0,
|
||||
prop = drm_property_create_enum(connector->dev, DRM_MODE_PROP_IMMUTABLE,
|
||||
"output_type_capacity",
|
||||
output_type_cap_list,
|
||||
ARRAY_SIZE(output_type_cap_list));
|
||||
|
||||
@@ -1062,7 +1062,7 @@ static int rockchip_drm_create_properties(struct drm_device *dev)
|
||||
return -ENOMEM;
|
||||
private->share_id_prop = prop;
|
||||
|
||||
prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC,
|
||||
prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC | DRM_MODE_PROP_IMMUTABLE,
|
||||
"CONNECTOR_ID", 0, 0xf);
|
||||
if (!prop)
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user