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

Commit c68617ed authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3-msm: Add __iomem markings where needed"

parents 3a88a0b8 a247baee
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -300,7 +300,7 @@ static inline bool is_valid_usb_speed(struct dwc3 *dwc, int speed)
 *
 * @return u32
 */
static inline u32 dwc3_msm_read_reg(void *base, u32 offset)
static inline u32 dwc3_msm_read_reg(void __iomem *base, u32 offset)
{
	u32 val = ioread32(base + offset);
	return val;
@@ -315,11 +315,11 @@ static inline u32 dwc3_msm_read_reg(void *base, u32 offset)
 *
 * @return u32
 */
static inline u32 dwc3_msm_read_reg_field(void *base,
static inline u32 dwc3_msm_read_reg_field(void __iomem *base,
					  u32 offset,
					  const u32 mask)
{
	u32 shift = find_first_bit((void *)&mask, 32);
	u32 shift = ffs(mask);
	u32 val = ioread32(base + offset);

	val &= mask;		/* clear other bits */
@@ -336,7 +336,7 @@ static inline u32 dwc3_msm_read_reg_field(void *base,
 * @val - value to write.
 *
 */
static inline void dwc3_msm_write_reg(void *base, u32 offset, u32 val)
static inline void dwc3_msm_write_reg(void __iomem *base, u32 offset, u32 val)
{
	iowrite32(val, base + offset);
}
@@ -350,7 +350,7 @@ static inline void dwc3_msm_write_reg(void *base, u32 offset, u32 val)
 * @val - value to write.
 *
 */
static inline void dwc3_msm_write_reg_field(void *base, u32 offset,
static inline void dwc3_msm_write_reg_field(void __iomem *base, u32 offset,
					    const u32 mask, u32 val)
{
	u32 shift = find_first_bit((void *)&mask, 32);
@@ -370,7 +370,7 @@ static inline void dwc3_msm_write_reg_field(void *base, u32 offset,
 * @val - value to write.
 *
 */
static inline void dwc3_msm_write_readback(void *base, u32 offset,
static inline void dwc3_msm_write_readback(void __iomem *base, u32 offset,
					    const u32 mask, u32 val)
{
	u32 write_val, tmp = ioread32(base + offset);