]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/intel: group individual funcs in parent interface
authorJani Nikula <jani.nikula@intel.com>
Fri, 12 Dec 2025 14:14:05 +0000 (16:14 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 15 Dec 2025 08:49:30 +0000 (10:49 +0200)
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.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/4305b09a93ce2c8ca83bf1fbb3cc7ef5a29d1567.1765548786.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
include/drm/intel/display_parent_interface.h

index 87e26ee0ecbfc259f8a02cb51916072b4011ff22..5d4b9dc837d9526e20811df38084d65baa8fe225 100644 (file)
@@ -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