With this, the remaining non-const parts are the ones that actually modify the EDID, for example to fix corrupt EDID.
Showing the changes to include (1 of 2 files). Show all
Unified · Split
| @@ -372,8 +372,8 @@ struct drm_connector; · 371 unmodified lines | |||
| 372 | struct drm_connector_state; | 372 | struct drm_connector_state; |
| 373 | struct drm_display_mode; | 373 | struct drm_display_mode; |
| 374 | 374 | ||
| 375 | int drm_edid_to_sad(struct edid *edid, struct cea_sad **sads); | 375 | int drm_edid_to_sad(const struct edid *edid, struct cea_sad **sads); |
| 376 | int drm_edid_to_speaker_allocation(struct edid *edid, u8 **sadb); | 376 | int drm_edid_to_speaker_allocation(const struct edid *edid, u8 **sadb); |
| 377 | int drm_av_sync_delay(struct drm_connector *connector, | 377 | int drm_av_sync_delay(struct drm_connector *connector, |
| 378 | const struct drm_display_mode *mode); | 378 | const struct drm_display_mode *mode); |
| 379 | 379 | ||
| @@ -569,8 +569,8 @@ int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); · 189 unmodified lines | |||
| 569 | int drm_add_override_edid_modes(struct drm_connector *connector); | 569 | int drm_add_override_edid_modes(struct drm_connector *connector); |
| 570 | 570 | ||
| 571 | u8 drm_match_cea_mode(const struct drm_display_mode *to_match); | 571 | u8 drm_match_cea_mode(const struct drm_display_mode *to_match); |
| 572 | bool drm_detect_hdmi_monitor(struct edid *edid); | 572 | bool drm_detect_hdmi_monitor(const struct edid *edid); |
| 573 | bool drm_detect_monitor_audio(struct edid *edid); | 573 | bool drm_detect_monitor_audio(const struct edid *edid); |
| 574 | enum hdmi_quantization_range | 574 | enum hdmi_quantization_range |
| 575 | drm_default_rgb_quant_range(const struct drm_display_mode *mode); | 575 | drm_default_rgb_quant_range(const struct drm_display_mode *mode); |
| 576 | int drm_add_modes_noedid(struct drm_connector *connector, | 576 | int drm_add_modes_noedid(struct drm_connector *connector, |
| @@ -582,7 +582,7 @@ int drm_edid_header_is_valid(const u8 *raw_edid); · 5 unmodified lines | |||
| 582 | bool drm_edid_block_valid(u8 *raw_edid, int block, bool print_bad_edid, | 582 | bool drm_edid_block_valid(u8 *raw_edid, int block, bool print_bad_edid, |
| 583 | bool *edid_corrupt); | 583 | bool *edid_corrupt); |
| 584 | bool drm_edid_is_valid(struct edid *edid); | 584 | bool drm_edid_is_valid(struct edid *edid); |
| 585 | void drm_edid_get_monitor_name(struct edid *edid, char *name, | 585 | void drm_edid_get_monitor_name(const struct edid *edid, char *name, |
| 586 | int buflen); | 586 | int buflen); |
| 587 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, | 587 | struct drm_display_mode *drm_mode_find_dmt(struct drm_device *dev, |
| 588 | int hsize, int vsize, int fresh, | 588 | int hsize, int vsize, int fresh, |