mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
drm/connector: Rename legacy TV property
The current tv_mode has driver-specific values that don't allow to easily share code using it, either at the userspace or kernel level. Since we're going to introduce a new, generic, property that fit the same purpose, let's rename this one to legacy_tv_mode to make it obvious we should move away from it. Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Lyude Paul <lyude@redhat.com> # nouveau Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Tested-by: Mateusz Kwiatkowski <kfyatek+publicgit@gmail.com> Acked-in-principle-or-something-like-that-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://lore.kernel.org/r/20220728-rpi-analog-tv-properties-v10-2-256dad125326@cerno.tech Signed-off-by: Maxime Ripard <maxime@cerno.tech>
This commit is contained in:
@@ -698,8 +698,8 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,
|
||||
state->tv.margins.top = val;
|
||||
} else if (property == config->tv_bottom_margin_property) {
|
||||
state->tv.margins.bottom = val;
|
||||
} else if (property == config->tv_mode_property) {
|
||||
state->tv.mode = val;
|
||||
} else if (property == config->legacy_tv_mode_property) {
|
||||
state->tv.legacy_mode = val;
|
||||
} else if (property == config->tv_brightness_property) {
|
||||
state->tv.brightness = val;
|
||||
} else if (property == config->tv_contrast_property) {
|
||||
@@ -808,8 +808,8 @@ drm_atomic_connector_get_property(struct drm_connector *connector,
|
||||
*val = state->tv.margins.top;
|
||||
} else if (property == config->tv_bottom_margin_property) {
|
||||
*val = state->tv.margins.bottom;
|
||||
} else if (property == config->tv_mode_property) {
|
||||
*val = state->tv.mode;
|
||||
} else if (property == config->legacy_tv_mode_property) {
|
||||
*val = state->tv.legacy_mode;
|
||||
} else if (property == config->tv_brightness_property) {
|
||||
*val = state->tv.brightness;
|
||||
} else if (property == config->tv_contrast_property) {
|
||||
|
||||
Reference in New Issue
Block a user