Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/edid: move all internal declarations to drm_crtc_internal.h

The declarations for internal EDID functions are a bit scattered. Put
them all in drm_crtc_internal.h.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/9ae137ea51f9cc2ccb3899b0acda553e6a8ce2db.1713259151.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+10 -9
+6
drivers/gpu/drm/drm_crtc_internal.h
··· 43 43 enum drm_connector_force; 44 44 enum drm_mode_status; 45 45 46 + struct cea_sad; 46 47 struct drm_atomic_state; 47 48 struct drm_bridge; 48 49 struct drm_connector; 49 50 struct drm_crtc; 50 51 struct drm_device; 51 52 struct drm_display_mode; 53 + struct drm_edid; 52 54 struct drm_file; 53 55 struct drm_framebuffer; 54 56 struct drm_mode_create_dumb; ··· 299 297 int drm_edid_override_show(struct drm_connector *connector, struct seq_file *m); 300 298 int drm_edid_override_set(struct drm_connector *connector, const void *edid, size_t size); 301 299 int drm_edid_override_reset(struct drm_connector *connector); 300 + const u8 *drm_find_edid_extension(const struct drm_edid *drm_edid, 301 + int ext_id, int *ext_index); 302 + void drm_edid_cta_sad_get(const struct cea_sad *cta_sad, u8 *sad); 303 + void drm_edid_cta_sad_set(struct cea_sad *cta_sad, const u8 *sad); 302 304 303 305 /* drm_edid_load.c */ 304 306 #ifdef CONFIG_DRM_LOAD_EDID_FIRMWARE
+1
drivers/gpu/drm/drm_displayid.c
··· 6 6 #include <drm/drm_edid.h> 7 7 #include <drm/drm_print.h> 8 8 9 + #include "drm_crtc_internal.h" 9 10 #include "drm_displayid_internal.h" 10 11 11 12 static const struct displayid_header *
+3 -1
drivers/gpu/drm/drm_eld.c
··· 3 3 * Copyright © 2023 Intel Corporation 4 4 */ 5 5 6 + #include <linux/export.h> 7 + 6 8 #include <drm/drm_edid.h> 7 9 #include <drm/drm_eld.h> 8 10 9 - #include "drm_internal.h" 11 + #include "drm_crtc_internal.h" 10 12 11 13 /** 12 14 * drm_eld_sad_get - get SAD from ELD to struct cea_sad
-5
drivers/gpu/drm/drm_internal.h
··· 35 35 36 36 #define DRM_IF_VERSION(maj, min) (maj << 16 | min) 37 37 38 - struct cea_sad; 39 38 struct dentry; 40 39 struct dma_buf; 41 40 struct iosys_map; ··· 276 277 void drm_framebuffer_print_info(struct drm_printer *p, unsigned int indent, 277 278 const struct drm_framebuffer *fb); 278 279 void drm_framebuffer_debugfs_init(struct drm_device *dev); 279 - 280 - /* drm_edid.c */ 281 - void drm_edid_cta_sad_get(const struct cea_sad *cta_sad, u8 *sad); 282 - void drm_edid_cta_sad_set(struct cea_sad *cta_sad, const u8 *sad); 283 280 284 281 #endif /* __DRM_INTERNAL_H__ */
-3
include/drm/drm_edid.h
··· 485 485 void drm_edid_print_product_id(struct drm_printer *p, 486 486 const struct drm_edid_product_id *id, bool raw); 487 487 488 - const u8 *drm_find_edid_extension(const struct drm_edid *drm_edid, 489 - int ext_id, int *ext_index); 490 - 491 488 #endif /* __DRM_EDID_H__ */