mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
rk mipi: fixed the bug of set_bits in rk32_mipi_dsi.c.
This commit is contained in:
@@ -147,7 +147,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 > bits) {
|
||||
if(data > ((1 << (bits+1)) - 1)) {
|
||||
MIPI_TRACE("%s error reg_addr:0x%04x, offset:%d, bits:0x%04x, value:0x%04x\n",
|
||||
__func__, reg_addr, offset, bits, data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user