drm/radeon: include drm/drm_edid.h only where needed

Including drm_edid.h from radeon_mode.h causes the rebuild of more than
a hundred files when drm_edid.h is modified, while there are only a
handful of files that actually need to include drm_edid.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Jani Nikula 2023-12-12 15:53:38 +02:00 committed by Alex Deucher
parent 91963397c4
commit e747235ef3
11 changed files with 13 additions and 2 deletions

View file

@ -29,6 +29,7 @@
#include <linux/pci.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_edid.h>
#include <drm/drm_file.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <drm/radeon_drm.h>

View file

@ -21,6 +21,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
#include <linux/hdmi.h>
#include <drm/drm_edid.h>
#include "radeon.h"
#include "radeon_asic.h"

View file

@ -21,6 +21,7 @@
*
*/
#include <linux/hdmi.h>
#include <drm/drm_edid.h>
#include "dce6_afmt.h"
#include "radeon.h"

View file

@ -26,6 +26,7 @@
#include <linux/pci.h>
#include <linux/slab.h>
#include <drm/drm_edid.h>
#include <drm/drm_vblank.h>
#include <drm/radeon_drm.h>
#include <drm/drm_fourcc.h>

View file

@ -26,6 +26,7 @@
*/
#include <linux/hdmi.h>
#include <drm/drm_edid.h>
#include <drm/radeon_drm.h>
#include "evergreen_hdmi.h"
#include "radeon.h"

View file

@ -27,6 +27,7 @@
#include <linux/pci.h>
#include <drm/drm_device.h>
#include <drm/drm_edid.h>
#include <drm/radeon_drm.h>
#include "radeon.h"

View file

@ -27,6 +27,7 @@
#include <drm/drm_crtc.h>
#include <drm/drm_eld.h>
#include <drm/drm_edid.h>
#include "dce6_afmt.h"
#include "evergreen_hdmi.h"
#include "radeon.h"

View file

@ -27,7 +27,9 @@
#include <linux/types.h>
#define RREG32_ENDPOINT(block, reg) \
struct cea_sad;
#define RREG32_ENDPOINT(block, reg) \
radeon_audio_endpoint_rreg(rdev, (block), (reg))
#define WREG32_ENDPOINT(block, reg, v) \
radeon_audio_endpoint_wreg(rdev, (block), (reg), (v))

View file

@ -28,6 +28,7 @@
#include <linux/pci.h>
#include <drm/drm_device.h>
#include <drm/drm_edid.h>
#include <drm/radeon_drm.h>
#include "radeon.h"

View file

@ -26,6 +26,7 @@
#include <linux/pci.h>
#include <drm/drm_edid.h>
#include <drm/drm_device.h>
#include <drm/radeon_drm.h>

View file

@ -32,13 +32,13 @@
#include <drm/display/drm_dp_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_edid.h>
#include <drm/drm_encoder.h>
#include <drm/drm_fixed.h>
#include <drm/drm_modeset_helper_vtables.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
struct edid;
struct radeon_bo;
struct radeon_device;