Commit 1325820
pinctrl: renesas: rzg2l: Move pinconf_to_config_argument() call outside of switch cases
Refactor the `rzg2l_pinctrl_pinconf_set()` function by moving the call to
`arg = pinconf_to_config_argument(_configs[i])` to the beginning of the
loop. Previously, this call was redundantly made in most cases within the
switch statement.
Signed-off-by: Lad Prabhakar <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Geert Uytterhoeven <[email protected]>1 parent befcded commit 1325820
1 file changed
+3
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1385 | 1385 | | |
1386 | 1386 | | |
1387 | 1387 | | |
| 1388 | + | |
1388 | 1389 | | |
1389 | 1390 | | |
1390 | | - | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | | - | |
1400 | 1399 | | |
1401 | 1400 | | |
1402 | 1401 | | |
| |||
1407 | 1406 | | |
1408 | 1407 | | |
1409 | 1408 | | |
1410 | | - | |
| 1409 | + | |
1411 | 1410 | | |
1412 | 1411 | | |
1413 | 1412 | | |
1414 | | - | |
1415 | | - | |
1416 | 1413 | | |
1417 | 1414 | | |
1418 | 1415 | | |
| |||
1433 | 1430 | | |
1434 | 1431 | | |
1435 | 1432 | | |
1436 | | - | |
1437 | | - | |
1438 | 1433 | | |
1439 | 1434 | | |
1440 | 1435 | | |
| |||
1454 | 1449 | | |
1455 | 1450 | | |
1456 | 1451 | | |
1457 | | - | |
| 1452 | + | |
1458 | 1453 | | |
1459 | 1454 | | |
1460 | 1455 | | |
1461 | | - | |
1462 | | - | |
1463 | 1456 | | |
1464 | 1457 | | |
1465 | 1458 | | |
| |||
1477 | 1470 | | |
1478 | 1471 | | |
1479 | 1472 | | |
1480 | | - | |
1481 | 1473 | | |
1482 | 1474 | | |
1483 | 1475 | | |
| |||
0 commit comments