Skip to content

Commit 851e098

Browse files
Jiapeng Chonghdeller
authored andcommitted
fbdev: arkfb: Remove the unused function dac_read_reg()
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>
1 parent eec5190 commit 851e098

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/video/fbdev/arkfb.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -318,14 +318,6 @@ struct dac_info
318318
void *data;
319319
};
320320

321-
322-
static inline u8 dac_read_reg(struct dac_info *info, u8 reg)
323-
{
324-
u8 code[2] = {reg, 0};
325-
info->dac_read_regs(info->data, code, 1);
326-
return code[1];
327-
}
328-
329321
static inline void dac_read_regs(struct dac_info *info, u8 *code, int count)
330322
{
331323
info->dac_read_regs(info->data, code, count);

0 commit comments

Comments
 (0)