diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/drm_edid.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index 1688ff500513..3140a30aa818 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c | |||
@@ -1264,6 +1264,18 @@ struct edid *drm_get_edid(struct drm_connector *connector, | |||
1264 | } | 1264 | } |
1265 | EXPORT_SYMBOL(drm_get_edid); | 1265 | EXPORT_SYMBOL(drm_get_edid); |
1266 | 1266 | ||
1267 | /** | ||
1268 | * drm_edid_duplicate - duplicate an EDID and the extensions | ||
1269 | * @edid: EDID to duplicate | ||
1270 | * | ||
1271 | * Return duplicate edid or NULL on allocation failure. | ||
1272 | */ | ||
1273 | struct edid *drm_edid_duplicate(const struct edid *edid) | ||
1274 | { | ||
1275 | return kmemdup(edid, (edid->extensions + 1) * EDID_LENGTH, GFP_KERNEL); | ||
1276 | } | ||
1277 | EXPORT_SYMBOL(drm_edid_duplicate); | ||
1278 | |||
1267 | /*** EDID parsing ***/ | 1279 | /*** EDID parsing ***/ |
1268 | 1280 | ||
1269 | /** | 1281 | /** |