]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/rockchip: remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 15 Apr 2021 08:47:01 +0000 (16:47 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 28 May 2021 17:55:52 +0000 (19:55 +0200)
Fix the following clang warning:

drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c:320:20: warning: unused
function 'dsi_set' [-Wunused-function].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/1618476421-114429-1-git-send-email-jiapeng.chong@linux.alibaba.com
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c

index 520a0a0cd2b56b751139927adf2369e1dbcaa546..ec7729d18cb8643e9a1f5ec2d73d14114661cfb5 100644 (file)
@@ -316,11 +316,6 @@ static inline u32 dsi_read(struct dw_mipi_dsi_rockchip *dsi, u32 reg)
        return readl(dsi->base + reg);
 }
 
-static inline void dsi_set(struct dw_mipi_dsi_rockchip *dsi, u32 reg, u32 mask)
-{
-       dsi_write(dsi, reg, dsi_read(dsi, reg) | mask);
-}
-
 static inline void dsi_update_bits(struct dw_mipi_dsi_rockchip *dsi, u32 reg,
                                   u32 mask, u32 val)
 {