Commit fa79bcc3 authored by Jordan Crouse's avatar Jordan Crouse Committed by Rob Clark
Browse files

drm/msm/dpu: Remove unused functions



Remove some unused container_of() helper functions.

v3: No changes
v2: Retained still used helper functions in the name of readability

Reviewed-by: default avatarSean Paul <sean@poorly.run>
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 49dfe764
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -91,16 +91,6 @@ struct dpu_hw_intf {
	struct dpu_hw_intf_ops ops;
};

/**
 * to_dpu_hw_intf - 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_intf *to_dpu_hw_intf(struct dpu_hw_blk *hw)
{
	return container_of(hw, struct dpu_hw_intf, base);
}

/**
 * dpu_hw_intf_init(): Initializes the intf driver for the passed
 * interface idx.
+0 −10
Original line number Diff line number Diff line
@@ -104,16 +104,6 @@ struct dpu_hw_pingpong {
	struct dpu_hw_pingpong_ops ops;
};

/**
 * dpu_hw_pingpong - 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_pingpong *to_dpu_hw_pingpong(struct dpu_hw_blk *hw)
{
	return container_of(hw, struct dpu_hw_pingpong, base);
}

/**
 * dpu_hw_pingpong_init - initializes the pingpong driver for the passed
 *	pingpong idx.
+0 −10
Original line number Diff line number Diff line
@@ -391,16 +391,6 @@ struct dpu_hw_pipe {
	struct dpu_hw_sspp_ops ops;
};

/**
 * dpu_hw_pipe - 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_pipe *to_dpu_hw_pipe(struct dpu_hw_blk *hw)
{
	return container_of(hw, struct dpu_hw_pipe, base);
}

/**
 * dpu_hw_sspp_init - initializes the sspp hw driver object.
 * Should be called once before accessing every pipe.
+0 −10
Original line number Diff line number Diff line
@@ -160,16 +160,6 @@ struct dpu_hw_mdp {
	struct dpu_hw_mdp_ops ops;
};

/**
 * to_dpu_hw_mdp - 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_mdp *to_dpu_hw_mdp(struct dpu_hw_blk *hw)
{
	return container_of(hw, struct dpu_hw_mdp, base);
}

/**
 * dpu_hw_mdptop_init - initializes the top driver for the passed idx
 * @idx:  Interface index for which driver object is required