mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drm/rockchip: rk628: fix compile warning for kernel 6.1
drivers/gpu/drm/rockchip/rk628/rk628_dsi.c:804:21: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Tao Huang <huangtao@rock-chips.com> Change-Id: I5b74e244f05b92103a94e6c66c070af56d0fcb16
This commit is contained in:
@@ -662,10 +662,10 @@ static int rk628_dsi_read_from_fifo(struct rk628_dsi *dsi,
|
||||
switch (length) {
|
||||
case 3:
|
||||
payload[2] = (val >> 16) & 0xff;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case 2:
|
||||
payload[1] = (val >> 8) & 0xff;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case 1:
|
||||
payload[0] = val & 0xff;
|
||||
return 0;
|
||||
@@ -802,10 +802,10 @@ static ssize_t rk628_dsi_transfer(struct rk628_dsi *dsi,
|
||||
switch (packet.payload_length) {
|
||||
case 3:
|
||||
val |= packet.payload[2] << 16;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case 2:
|
||||
val |= packet.payload[1] << 8;
|
||||
/* fallthrough */
|
||||
fallthrough;
|
||||
case 1:
|
||||
val |= packet.payload[0];
|
||||
dsi_write(dsi, DSI_GEN_PLD_DATA, val);
|
||||
|
||||
Reference in New Issue
Block a user