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

Commit 525300f5 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

msm: smsm_debug: Use smem_find_to_proc()



smem_find() is deprecated.  Use the replacement function,
smem_find_to_proc(), instead.

Change-Id: Ia8d76c456746c5643c322645404325f615e09abf
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent dad5af44
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -32,8 +32,10 @@ static void debug_read_smsm_state(struct seq_file *s)
	uint32_t *smsm;
	int n;

	smsm = smem_find(SMEM_SMSM_SHARED_STATE,
			 SMSM_NUM_ENTRIES * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMSM_SHARED_STATE,
			 SMSM_NUM_ENTRIES * sizeof(uint32_t),
			 0,
			 SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (n = 0; n < SMSM_NUM_ENTRIES; n++)
@@ -261,8 +263,10 @@ static void debug_read_intr_mask(struct seq_file *s)
	uint32_t *smsm;
	int m, n;

	smsm = smem_find(SMEM_SMSM_CPU_INTR_MASK,
			  SMSM_NUM_ENTRIES * SMSM_NUM_HOSTS * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMSM_CPU_INTR_MASK,
			  SMSM_NUM_ENTRIES * SMSM_NUM_HOSTS * sizeof(uint32_t),
			  0,
			  SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (m = 0; m < SMSM_NUM_ENTRIES; m++) {
@@ -279,8 +283,10 @@ static void debug_read_intr_mux(struct seq_file *s)
	uint32_t *smsm;
	int n;

	smsm = smem_find(SMEM_SMD_SMSM_INTR_MUX,
			  SMSM_NUM_INTR_MUX * sizeof(uint32_t));
	smsm = smem_find_to_proc(SMEM_SMD_SMSM_INTR_MUX,
			  SMSM_NUM_INTR_MUX * sizeof(uint32_t),
			  0,
			  SMEM_ANY_HOST_FLAG);

	if (smsm)
		for (n = 0; n < SMSM_NUM_INTR_MUX; n++)