hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/pinctrl/pinctrl-lpc18xx.c
....@@ -838,8 +838,11 @@
838838 *arg = (reg & LPC18XX_SCU_PIN_EHD_MASK) >> LPC18XX_SCU_PIN_EHD_POS;
839839 switch (*arg) {
840840 case 3: *arg += 5;
841
+ fallthrough;
841842 case 2: *arg += 5;
843
+ fallthrough;
842844 case 1: *arg += 3;
845
+ fallthrough;
843846 case 0: *arg += 4;
844847 }
845848 break;
....@@ -1054,8 +1057,11 @@
10541057
10551058 switch (param_val) {
10561059 case 20: param_val -= 5;
1060
+ fallthrough;
10571061 case 14: param_val -= 5;
1062
+ fallthrough;
10581063 case 8: param_val -= 3;
1064
+ fallthrough;
10591065 case 4: param_val -= 4;
10601066 break;
10611067 default:
....@@ -1318,15 +1324,13 @@
13181324 static int lpc18xx_scu_probe(struct platform_device *pdev)
13191325 {
13201326 struct lpc18xx_scu_data *scu;
1321
- struct resource *res;
13221327 int ret;
13231328
13241329 scu = devm_kzalloc(&pdev->dev, sizeof(*scu), GFP_KERNEL);
13251330 if (!scu)
13261331 return -ENOMEM;
13271332
1328
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
1329
- scu->base = devm_ioremap_resource(&pdev->dev, res);
1333
+ scu->base = devm_platform_ioremap_resource(pdev, 0);
13301334 if (IS_ERR(scu->base))
13311335 return PTR_ERR(scu->base);
13321336