diff options
author | Jani Nikula <jani.nikula@intel.com> | 2023-01-04 12:05:18 +0200 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2023-01-19 10:53:24 +0200 |
commit | c3292ab5fbd7045f019418b2ce1977891419ad28 (patch) | |
tree | 687b16fe63930b9f1feb7487937235a01e4f1dbc /drivers/gpu/drm/drm_connector.c | |
parent | 72794d16bd535a984e6653a18f5862405b49b5f9 (diff) | |
download | lwn-c3292ab5fbd7045f019418b2ce1977891419ad28.tar.gz lwn-c3292ab5fbd7045f019418b2ce1977891419ad28.zip |
drm/edid: parse VICs from CTA VDB early
A number of places need access to the VICs. Just parse them early for
easy access. Gracefully handle multiple CTA VDBs. It's unlikely to have
more than one, but the CTA-861 references "Video Data Block(s)", so err
on the safe side.
Start parsing them now, convert users in follow-up to have fewer moving
parts in one go.
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7989b2b37837be68953c5d20afd3e93762bfd626.1672826282.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/drm_connector.c')
-rw-r--r-- | drivers/gpu/drm/drm_connector.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c index 86abee85b92a..9d0250c28e9b 100644 --- a/drivers/gpu/drm/drm_connector.c +++ b/drivers/gpu/drm/drm_connector.c @@ -565,6 +565,7 @@ void drm_connector_cleanup(struct drm_connector *connector) ida_free(&dev->mode_config.connector_ida, connector->index); kfree(connector->display_info.bus_formats); + kfree(connector->display_info.vics); drm_mode_object_unregister(dev, &connector->base); kfree(connector->name); connector->name = NULL; |