mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 11:33:36 -04:00
drm/connector: Rename subconnector state variable
There is two TV subconnector related properties registered by drm_mode_create_tv_properties(): subconnector and select subconnector. While the select subconnector property is stored in the kernel by the drm_tv_connector_state structure, the subconnector property isn't stored anywhere. Worse, the select subconnector property is stored in a field called subconnector, creating some ambiguity about which property content we're accessing. Let's rename that field to one called select_subconnector to make it move obvious what it's about. Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v4-5-60d38873f782@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
@@ -687,7 +687,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
|
||||
*/
|
||||
return -EINVAL;
|
||||
} else if (property == config->tv_select_subconnector_property) {
|
||||
state->tv.subconnector = val;
|
||||
state->tv.select_subconnector = val;
|
||||
} else if (property == config->tv_left_margin_property) {
|
||||
state->tv.margins.left = val;
|
||||
} else if (property == config->tv_right_margin_property) {
|
||||
@@ -795,7 +795,7 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
|
||||
else
|
||||
*val = connector->dpms;
|
||||
} else if (property == config->tv_select_subconnector_property) {
|
||||
*val = state->tv.subconnector;
|
||||
*val = state->tv.select_subconnector;
|
||||
} else if (property == config->tv_left_margin_property) {
|
||||
*val = state->tv.margins.left;
|
||||
} else if (property == config->tv_right_margin_property) {
|
||||
|
||||
Reference in New Issue
Block a user