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

Commit a9b38801 authored by Stephen Boyd's avatar Stephen Boyd
Browse files

soc: qcom: smd: Drop const marking on writel wrapper



Marking this pointer as const here doesn't make sense as we're
going to be changing the value of what the pointer is pointing
at. If we didn't have RTB logging hooks in place in <asm/io.h>
the compilation would have warned about const being discarded.

Change-Id: I02ec04c52278850a6f82357799183e5f15e974d5
Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
parent 048c6ef4
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -201,9 +201,6 @@ void *smsm_log_ctx;
#define SMSM_POWER_INFO(x...) do { } while (0)
#endif

static inline void smd_write_intr(unsigned int val,
				const void __iomem *addr);

static void smd_fake_irq_handler(unsigned long arg);
static void smsm_cb_snapshot(uint32_t use_wakeup_source);

@@ -218,8 +215,7 @@ static int smd_stream_read_avail(struct smd_channel *ch);

static bool pid_is_on_edge(uint32_t edge_num, unsigned pid);

static inline void smd_write_intr(unsigned int val,
				const void __iomem *addr)
static inline void smd_write_intr(unsigned int val, void __iomem *addr)
{
	wmb();
	__raw_writel(val, addr);