Skip to content

Commit 24c13df

Browse files
krzkvinodkoul
authored andcommitted
dmaengine: qcom: gpi: Drop unused gpi_write_reg_field()
Static function gpi_write_reg_field() is not used, W=1 build: gpi.c:573:20: error: unused function 'gpi_write_reg_field' [-Werror,-Wunused-function] Fixes: 5d0c353 ("dmaengine: qcom: Add GPI dma driver") Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent f0368c2 commit 24c13df

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/dma/qcom/gpi.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,6 @@ static inline void gpi_write_reg(struct gpii *gpii, void __iomem *addr, u32 val)
569569
writel_relaxed(val, addr);
570570
}
571571

572-
/* gpi_write_reg_field - write to specific bit field */
573-
static inline void gpi_write_reg_field(struct gpii *gpii, void __iomem *addr,
574-
u32 mask, u32 shift, u32 val)
575-
{
576-
u32 tmp = gpi_read_reg(gpii, addr);
577-
578-
tmp &= ~mask;
579-
val = tmp | ((val << shift) & mask);
580-
gpi_write_reg(gpii, addr, val);
581-
}
582-
583572
static __always_inline void
584573
gpi_update_reg(struct gpii *gpii, u32 offset, u32 mask, u32 val)
585574
{

0 commit comments

Comments
 (0)