Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

drm/msm/disp/dpu: Mark a handful of functions as static



Mark a number of static functions that are only unsed in the file
that defines them and remove the prototypes from the headers where
needed.

Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent f2c9a924
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -264,6 +264,9 @@ void dpu_encoder_helper_report_irq_timeout(struct dpu_encoder_phys *phys_enc,
				DPU_ENCODER_FRAME_EVENT_ERROR);
}

static int dpu_encoder_helper_wait_event_timeout(int32_t drm_id,
		int32_t hw_id, struct dpu_encoder_wait_info *info);

int dpu_encoder_helper_wait_for_irq(struct dpu_encoder_phys *phys_enc,
		enum dpu_intr_idx intr_idx,
		struct dpu_encoder_wait_info *wait_info)
@@ -467,7 +470,7 @@ void dpu_encoder_get_hw_resources(struct drm_encoder *drm_enc,
	}
}

void dpu_encoder_destroy(struct drm_encoder *drm_enc)
static void dpu_encoder_destroy(struct drm_encoder *drm_enc)
{
	struct dpu_encoder_virt *dpu_enc = NULL;
	int i = 0;
@@ -1516,7 +1519,7 @@ void dpu_encoder_helper_trigger_start(struct dpu_encoder_phys *phys_enc)
	}
}

int dpu_encoder_helper_wait_event_timeout(
static int dpu_encoder_helper_wait_event_timeout(
		int32_t drm_id,
		int32_t hw_id,
		struct dpu_encoder_wait_info *info)
+0 −6
Original line number Diff line number Diff line
@@ -158,12 +158,6 @@ struct drm_encoder *dpu_encoder_init(
int dpu_encoder_setup(struct drm_device *dev, struct drm_encoder *enc,
		struct msm_display_info *disp_info);

/**
 * dpu_encoder_destroy - destroy previously initialized virtual encoder
 * @drm_enc:    Pointer to previously created drm encoder structure
 */
void dpu_encoder_destroy(struct drm_encoder *drm_enc);

/**
 * dpu_encoder_prepare_commit - prepare encoder at the very beginning of an
 *	atomic commit, before any registers are written
+0 −14
Original line number Diff line number Diff line
@@ -355,20 +355,6 @@ struct dpu_encoder_phys *dpu_encoder_phys_cmd_init(
 */
void dpu_encoder_helper_trigger_start(struct dpu_encoder_phys *phys_enc);

/**
 * dpu_encoder_helper_wait_event_timeout - wait for event with timeout
 *	taking into account that jiffies may jump between reads leading to
 *	incorrectly detected timeouts. Prevent failure in this scenario by
 *	making sure that elapsed time during wait is valid.
 * @drm_id: drm object id for logging
 * @hw_id: hw instance id for logging
 * @info: wait info structure
 */
int dpu_encoder_helper_wait_event_timeout(
		int32_t drm_id,
		int32_t hw_id,
		struct dpu_encoder_wait_info *info);

/**
 * dpu_encoder_helper_hw_reset - issue ctl hw reset
 *	This helper function may be optionally specified by physical
+1 −1
Original line number Diff line number Diff line
@@ -349,7 +349,7 @@ static int dpu_encoder_phys_cmd_control_vblank_irq(
	return ret;
}

void dpu_encoder_phys_cmd_irq_control(struct dpu_encoder_phys *phys_enc,
static void dpu_encoder_phys_cmd_irq_control(struct dpu_encoder_phys *phys_enc,
		bool enable)
{
	struct dpu_encoder_phys_cmd *cmd_enc;
+1 −1
Original line number Diff line number Diff line
@@ -846,7 +846,7 @@ static int _dpu_format_get_plane_sizes_linear(
	return 0;
}

int dpu_format_get_plane_sizes(
static int dpu_format_get_plane_sizes(
		const struct dpu_format *fmt,
		const uint32_t w,
		const uint32_t h,
Loading