diff options
author | Tom Rix <trix@redhat.com> | 2022-05-21 22:07:16 +0300 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2022-09-15 16:35:43 +0300 |
commit | 98a65e6d498c46b0beec7a40aac4b3e404642993 (patch) | |
tree | 85b7850ae80c76109d829cadf06456ca67204a98 /drivers/gpu | |
parent | 7ae7a6211fe7251543796d5af971acb8c9e2da9e (diff) | |
download | linux-98a65e6d498c46b0beec7a40aac4b3e404642993.tar.xz |
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 6ca831d221ec..c356de5dd220 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c @@ -188,12 +188,6 @@ struct vop { struct vop_win win[]; }; -static inline void vop_writel(struct vop *vop, uint32_t offset, uint32_t v) -{ - writel(v, vop->regs + offset); - vop->regsbak[offset >> 2] = v; -} - static inline uint32_t vop_readl(struct vop *vop, uint32_t offset) { return readl(vop->regs + offset); |