Commit db9f132
soc: mediatek: pwrap: Move PMIC read test sequence in function
The PMIC read test is performed in two places: pwrap_init_dual_io()
and pwrap_init_sidly().
In preparation for adding support for PMICs requiring a companion
part, move this sequence to a new function pwrap_pmic_read_test().
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://lore.kernel.org/r/20230412131216.198313-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>1 parent e829f1f commit db9f132
1 file changed
Lines changed: 20 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1455 | 1455 | | |
1456 | 1456 | | |
1457 | 1457 | | |
| 1458 | + | |
| 1459 | + | |
| 1460 | + | |
| 1461 | + | |
| 1462 | + | |
| 1463 | + | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1458 | 1470 | | |
1459 | 1471 | | |
1460 | 1472 | | |
| |||
1498 | 1510 | | |
1499 | 1511 | | |
1500 | 1512 | | |
1501 | | - | |
1502 | 1513 | | |
1503 | 1514 | | |
| 1515 | + | |
1504 | 1516 | | |
1505 | 1517 | | |
1506 | 1518 | | |
1507 | 1519 | | |
1508 | 1520 | | |
1509 | 1521 | | |
1510 | | - | |
1511 | | - | |
1512 | | - | |
| 1522 | + | |
| 1523 | + | |
| 1524 | + | |
1513 | 1525 | | |
1514 | 1526 | | |
1515 | 1527 | | |
| |||
1529 | 1541 | | |
1530 | 1542 | | |
1531 | 1543 | | |
1532 | | - | |
1533 | | - | |
| 1544 | + | |
1534 | 1545 | | |
1535 | 1546 | | |
1536 | 1547 | | |
| |||
1546 | 1557 | | |
1547 | 1558 | | |
1548 | 1559 | | |
1549 | | - | |
1550 | | - | |
1551 | | - | |
1552 | | - | |
1553 | | - | |
1554 | | - | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
1555 | 1563 | | |
1556 | 1564 | | |
1557 | 1565 | | |
| |||
0 commit comments