mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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: 5d0c3533a1 ("dmaengine: qcom: Add GPI dma driver")
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250525-dma-fixes-v1-3-89d06dac9bcb@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
This commit is contained in:
parent
f0368c23ca
commit
24c13df655
|
|
@ -569,17 +569,6 @@ static inline void gpi_write_reg(struct gpii *gpii, void __iomem *addr, u32 val)
|
|||
writel_relaxed(val, addr);
|
||||
}
|
||||
|
||||
/* gpi_write_reg_field - write to specific bit field */
|
||||
static inline void gpi_write_reg_field(struct gpii *gpii, void __iomem *addr,
|
||||
u32 mask, u32 shift, u32 val)
|
||||
{
|
||||
u32 tmp = gpi_read_reg(gpii, addr);
|
||||
|
||||
tmp &= ~mask;
|
||||
val = tmp | ((val << shift) & mask);
|
||||
gpi_write_reg(gpii, addr, val);
|
||||
}
|
||||
|
||||
static __always_inline void
|
||||
gpi_update_reg(struct gpii *gpii, u32 offset, u32 mask, u32 val)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user