There are a handful of function pointers that don't really warrant a
dedicated sub-struct for the functionality. Group all of them together
in a single anonymous sub-struct.

Signed-off-by: Jani Nikula <[email protected]>

---

'git show -w' is easy to review
---
 include/drm/intel/display_parent_interface.h | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/include/drm/intel/display_parent_interface.h 
b/include/drm/intel/display_parent_interface.h
index 87e26ee0ecbf..5d4b9dc837d9 100644
--- a/include/drm/intel/display_parent_interface.h
+++ b/include/drm/intel/display_parent_interface.h
@@ -103,17 +103,20 @@ struct intel_display_parent_interface {
        /** @stolen: Stolen memory. */
        const struct intel_display_stolen_interface *stolen;
 
-       /** @vgpu_active: Is vGPU active? Optional. */
-       bool (*vgpu_active)(struct drm_device *drm);
+       /* Generic independent functions */
+       struct {
+               /** @vgpu_active: Is vGPU active? Optional. */
+               bool (*vgpu_active)(struct drm_device *drm);
 
-       /** @has_fenced_regions: Support legacy fencing? Optional. */
-       bool (*has_fenced_regions)(struct drm_device *drm);
+               /** @has_fenced_regions: Support legacy fencing? Optional. */
+               bool (*has_fenced_regions)(struct drm_device *drm);
 
-       /** @fence_priority_display: Set display priority. Optional. */
-       void (*fence_priority_display)(struct dma_fence *fence);
+               /** @fence_priority_display: Set display priority. Optional. */
+               void (*fence_priority_display)(struct dma_fence *fence);
 
-       /** @has_auxccs: Are AuxCCS formats supported by the parent. Optional. 
*/
-       bool (*has_auxccs)(struct drm_device *drm);
+               /** @has_auxccs: Are AuxCCS formats supported by the parent. 
Optional. */
+               bool (*has_auxccs)(struct drm_device *drm);
+       };
 };
 
 #endif
-- 
2.47.3

Reply via email to