mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
3fd63734bc
commit
0390430def
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue