Re: [PATCH 05/11] drm/msm/dpu: Cleanup some container_of helper functions

2018-10-18 Thread Sam Ravnborg
Hi Jordan. > -/** > - * to_dpu_hw_mixer - convert base object dpu_hw_base to container > - * @hw: Pointer to base hardware block > - * return: Pointer to hardware block container > - */ > -static inline struct dpu_hw_mixer *to_dpu_hw_mixer(struct dpu_hw_blk *hw) > -{ > - return container_of(hw

[PATCH 05/11] drm/msm/dpu: Cleanup some container_of helper functions

2018-10-18 Thread Jordan Crouse
Cleanup a number of static inline container_of() helper functions because they are either unused or only used in one file and can be performed inline or with a simple #define. Signed-off-by: Jordan Crouse --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 10 -- drivers/gpu/drm/msm/di