Skip to content

Commit 98a65e6

Browse files
Tom Rixmmind
authored andcommitted
drm/rockchip: remove vop_writel from vop1 driver
cppcheck reports [drivers/gpu/drm/rockchip/rockchip_drm_vop.c:186]: (style) The function 'vop_writel' is never used. vop_writel is static function that is not used, so remove it. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://patchwork.freedesktop.org/patch/msgid/20220521190716.1936193-1-trix@redhat.com
1 parent 7ae7a62 commit 98a65e6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/rockchip/rockchip_drm_vop.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,6 @@ struct vop {
188188
struct vop_win win[];
189189
};
190190

191-
static inline void vop_writel(struct vop *vop, uint32_t offset, uint32_t v)
192-
{
193-
writel(v, vop->regs + offset);
194-
vop->regsbak[offset >> 2] = v;
195-
}
196-
197191
static inline uint32_t vop_readl(struct vop *vop, uint32_t offset)
198192
{
199193
return readl(vop->regs + offset);

0 commit comments

Comments
 (0)