Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/display: make struct __intel_global_objs_state opaque

With struct __intel_global_objs_state only being accessed in
intel_global_state.c, we can make it opaque. The double underscore to
indicate internal becomes redundant, drop it.

Reviewed-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/06cc4d1c506e3a5b1cc50e01c4bd1135bbf0f7bd.1753953530.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>

+8 -8
+2 -2
drivers/gpu/drm/i915/display/intel_display_types.h
··· 54 54 55 55 struct cec_notifier; 56 56 struct drm_printer; 57 - struct __intel_global_objs_state; 58 57 struct intel_connector; 59 58 struct intel_ddi_buf_trans; 60 59 struct intel_fbc; 60 + struct intel_global_objs_state; 61 61 struct intel_hdcp_shim; 62 62 struct intel_tc_port; 63 63 ··· 593 593 594 594 struct ref_tracker *wakeref; 595 595 596 - struct __intel_global_objs_state *global_objs; 596 + struct intel_global_objs_state *global_objs; 597 597 int num_global_objs; 598 598 599 599 /* Internal commit, as opposed to userspace/client initiated one */
+6 -1
drivers/gpu/drm/i915/display/intel_global_state.c
··· 38 38 (__i)++) \ 39 39 for_each_if(obj) 40 40 41 + struct intel_global_objs_state { 42 + struct intel_global_obj *ptr; 43 + struct intel_global_state *state, *old_state, *new_state; 44 + }; 45 + 41 46 struct intel_global_commit { 42 47 struct kref ref; 43 48 struct completion done; ··· 178 173 struct intel_display *display = to_intel_display(state); 179 174 int index, num_objs, i; 180 175 size_t size; 181 - struct __intel_global_objs_state *arr; 176 + struct intel_global_objs_state *arr; 182 177 struct intel_global_state *obj_state; 183 178 184 179 for (i = 0; i < state->num_global_objs; i++)
-5
drivers/gpu/drm/i915/display/intel_global_state.h
··· 36 36 bool changed, serialized; 37 37 }; 38 38 39 - struct __intel_global_objs_state { 40 - struct intel_global_obj *ptr; 41 - struct intel_global_state *state, *old_state, *new_state; 42 - }; 43 - 44 39 void intel_atomic_global_obj_init(struct intel_display *display, 45 40 struct intel_global_obj *obj, 46 41 struct intel_global_state *state,