Commit d0ddd88
mtd: spi-nor: Introduce spi_nor_match_id()
Similar to spi_nor_match_name() extend the search of flash_info through
all the manufacturers, this time doing the match by ID. There's no reason
to limit the search per manufacturer yet, do it globally, search the flash
in all the parts of all manufacturers in a single method.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Link: https://lore.kernel.org/r/20220420103427.47867-3-tudor.ambarus@microchip.com1 parent b1145d6 commit d0ddd88
1 file changed
+19
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1638 | 1638 | | |
1639 | 1639 | | |
1640 | 1640 | | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
| 1641 | + | |
| 1642 | + | |
1644 | 1643 | | |
1645 | | - | |
| 1644 | + | |
| 1645 | + | |
1646 | 1646 | | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
1651 | 1656 | | |
1652 | 1657 | | |
1653 | 1658 | | |
| |||
1657 | 1662 | | |
1658 | 1663 | | |
1659 | 1664 | | |
1660 | | - | |
1661 | 1665 | | |
1662 | 1666 | | |
1663 | 1667 | | |
| |||
1677 | 1681 | | |
1678 | 1682 | | |
1679 | 1683 | | |
1680 | | - | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
1684 | | - | |
1685 | | - | |
1686 | | - | |
1687 | | - | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
1688 | 1689 | | |
1689 | | - | |
1690 | | - | |
1691 | | - | |
1692 | | - | |
| 1690 | + | |
1693 | 1691 | | |
1694 | 1692 | | |
1695 | 1693 | | |
| |||
0 commit comments