@@ -569,31 +569,6 @@ int __must_check drm_atomic_nonblocking_commit(struct drm_atomic_state *state);
569569
570570void drm_state_dump (struct drm_device * dev , struct drm_printer * p );
571571
572- /**
573- * for_each_connector_in_state - iterate over all connectors in an atomic update
574- * @__state: &struct drm_atomic_state pointer
575- * @connector: &struct drm_connector iteration cursor
576- * @connector_state: &struct drm_connector_state iteration cursor
577- * @__i: int iteration cursor, for macro-internal use
578- *
579- * This iterates over all connectors in an atomic update. Note that before the
580- * software state is committed (by calling drm_atomic_helper_swap_state(), this
581- * points to the new state, while afterwards it points to the old state. Due to
582- * this tricky confusion this macro is deprecated.
583- *
584- * FIXME:
585- *
586- * Replace all usage of this with one of the explicit iterators below and then
587- * remove this macro.
588- */
589- #define for_each_connector_in_state (__state , connector , connector_state , __i ) \
590- for ((__i) = 0; \
591- (__i) < (__state)->num_connector && \
592- ((connector) = (__state)->connectors[__i].ptr, \
593- (connector_state) = (__state)->connectors[__i].state, 1); \
594- (__i)++) \
595- for_each_if (connector)
596-
597572/**
598573 * for_each_oldnew_connector_in_state - iterate over all connectors in an atomic update
599574 * @__state: &struct drm_atomic_state pointer
@@ -657,31 +632,6 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p);
657632 (__i)++) \
658633 for_each_if (connector)
659634
660- /**
661- * for_each_crtc_in_state - iterate over all CRTCs in an atomic update
662- * @__state: &struct drm_atomic_state pointer
663- * @crtc: &struct drm_crtc iteration cursor
664- * @crtc_state: &struct drm_crtc_state iteration cursor
665- * @__i: int iteration cursor, for macro-internal use
666- *
667- * This iterates over all CRTCs in an atomic update. Note that before the
668- * software state is committed (by calling drm_atomic_helper_swap_state(), this
669- * points to the new state, while afterwards it points to the old state. Due to
670- * this tricky confusion this macro is deprecated.
671- *
672- * FIXME:
673- *
674- * Replace all usage of this with one of the explicit iterators below and then
675- * remove this macro.
676- */
677- #define for_each_crtc_in_state (__state , crtc , crtc_state , __i ) \
678- for ((__i) = 0; \
679- (__i) < (__state)->dev->mode_config.num_crtc && \
680- ((crtc) = (__state)->crtcs[__i].ptr, \
681- (crtc_state) = (__state)->crtcs[__i].state, 1); \
682- (__i)++) \
683- for_each_if (crtc_state)
684-
685635/**
686636 * for_each_oldnew_crtc_in_state - iterate over all CRTCs in an atomic update
687637 * @__state: &struct drm_atomic_state pointer
@@ -741,31 +691,6 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p);
741691 (__i)++) \
742692 for_each_if (crtc)
743693
744- /**
745- * for_each_plane_in_state - iterate over all planes in an atomic update
746- * @__state: &struct drm_atomic_state pointer
747- * @plane: &struct drm_plane iteration cursor
748- * @plane_state: &struct drm_plane_state iteration cursor
749- * @__i: int iteration cursor, for macro-internal use
750- *
751- * This iterates over all planes in an atomic update. Note that before the
752- * software state is committed (by calling drm_atomic_helper_swap_state(), this
753- * points to the new state, while afterwards it points to the old state. Due to
754- * this tricky confusion this macro is deprecated.
755- *
756- * FIXME:
757- *
758- * Replace all usage of this with one of the explicit iterators below and then
759- * remove this macro.
760- */
761- #define for_each_plane_in_state (__state , plane , plane_state , __i ) \
762- for ((__i) = 0; \
763- (__i) < (__state)->dev->mode_config.num_total_plane && \
764- ((plane) = (__state)->planes[__i].ptr, \
765- (plane_state) = (__state)->planes[__i].state, 1); \
766- (__i)++) \
767- for_each_if (plane_state)
768-
769694/**
770695 * for_each_oldnew_plane_in_state - iterate over all planes in an atomic update
771696 * @__state: &struct drm_atomic_state pointer
0 commit comments