summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2020-06-16 11:54:06 +0200
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-07-04 12:23:13 +0200
commit0390430deffbeb05bf08dfc8168d53f6e693b768 (patch)
treed608fe08a21bd3821b3be3f50500ef141fd050cc
parentmedia: nuvoton-cir: remove setting tx carrier functions (diff)
downloadlinux-0390430deffbeb05bf08dfc8168d53f6e693b768.tar.xz
linux-0390430deffbeb05bf08dfc8168d53f6e693b768.zip
media: fintek-cir: remove unused function fintek_clear_reg_bit
Found with clang: drivers/media/rc/fintek-cir.c:55:20: warning: unused function 'fintek_clear_reg_bit' [-Wunused-function] static inline void fintek_clear_reg_bit(struct fintek_dev *fintek, u8 val, u8 reg) Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
-rw-r--r--drivers/media/rc/fintek-cir.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/media/rc/fintek-cir.c b/drivers/media/rc/fintek-cir.c
index b74bb13161fd..8e3177c5b586 100644
--- a/drivers/media/rc/fintek-cir.c
+++ b/drivers/media/rc/fintek-cir.c
@@ -51,13 +51,6 @@ static inline void fintek_set_reg_bit(struct fintek_dev *fintek, u8 val, u8 reg)
fintek_cr_write(fintek, tmp, reg);
}
-/* clear config register bit without changing other bits */
-static inline void fintek_clear_reg_bit(struct fintek_dev *fintek, u8 val, u8 reg)
-{
- u8 tmp = fintek_cr_read(fintek, reg) & ~val;
- fintek_cr_write(fintek, tmp, reg);
-}
-
/* enter config mode */
static inline void fintek_config_mode_enable(struct fintek_dev *fintek)
{