OSDN Git Service

fbdev: arkfb: Remove the unused function dac_read_reg()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 14 Sep 2022 10:23:01 +0000 (18:23 +0800)
committerHelge Deller <deller@gmx.de>
Sat, 8 Oct 2022 13:20:08 +0000 (15:20 +0200)
The function dac_read_reg() is defined in the arkfb.c file, but not
called elsewhere, so delete this unused function.

drivers/video/fbdev/arkfb.c:322:18: warning: unused function 'dac_read_reg'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2155
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/arkfb.c

index a317d9f..5f8fec9 100644 (file)
@@ -318,14 +318,6 @@ struct dac_info
        void *data;
 };
 
-
-static inline u8 dac_read_reg(struct dac_info *info, u8 reg)
-{
-       u8 code[2] = {reg, 0};
-       info->dac_read_regs(info->data, code, 1);
-       return code[1];
-}
-
 static inline void dac_read_regs(struct dac_info *info, u8 *code, int count)
 {
        info->dac_read_regs(info->data, code, count);