From cc93de373b564c0d5740e92f3ebd1e52df7a74a4 Mon Sep 17 00:00:00 2001 From: xubilv Date: Tue, 21 Jun 2016 15:49:07 +0800 Subject: [PATCH] video: rockchip: mipi: modify judgment condition for rk32_dsi_set_bits Change-Id: I71a2515f871dc3d8bbcd8567565fc412c39d9a81 Signed-off-by: xubilv --- drivers/video/rockchip/transmitter/rk32_mipi_dsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c b/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c index ec8724718b45..135dcd6710c8 100755 --- a/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c +++ b/drivers/video/rockchip/transmitter/rk32_mipi_dsi.c @@ -178,7 +178,7 @@ static int rk32_dsi_set_bits(struct dsi *dsi, u32 data, u32 reg) val |= (data & bits) << offset; rk32_dsi_write_reg(dsi, reg_addr, &val); - if (data > ((1 << (bits+1)) - 1)) { + if (data > bits) { MIPI_TRACE("%s error reg_addr:0x%04x, offset:%d, bits:0x%04x, value:0x%04x\n", __func__, reg_addr, offset, bits, data); } -- 2.34.1