bcm27xx: add support for linux v5.15
[openwrt/staging/jow.git] / target / linux / bcm27xx / patches-5.15 / 950-0455-media-i2c-tc358743-Fix-compiler-warning.patch
1 From b72686b694ac4979450853a6a5dc2ece3df9fe82 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Tue, 27 Jul 2021 11:17:08 +0100
4 Subject: [PATCH] media: i2c: tc358743: Fix compiler warning
5
6 Avoid a compiler warning by using the "fallthrough" pseudo-keyword in
7 place of the old "/* fall through */" comment convention.
8
9 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
10 ---
11 drivers/media/i2c/tc358743.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 --- a/drivers/media/i2c/tc358743.c
15 +++ b/drivers/media/i2c/tc358743.c
16 @@ -2008,7 +2008,7 @@ static int tc358743_probe_of(struct tc35
17 switch (bps_pr_lane) {
18 default:
19 dev_warn(dev, "untested bps per lane: %u bps\n", bps_pr_lane);
20 - /* fall through */
21 + fallthrough;
22 case 594000000U:
23 state->pdata.lineinitcnt = 0xe80;
24 state->pdata.lptxtimecnt = 0x003;