diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-07-03 15:40:52 +0800 |
|---|---|---|
| committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2026-07-03 15:46:01 +0200 |
| commit | d322e40f4edf92bf0ca329e5aa4ae1c0316feb38 (patch) | |
| tree | 7575c5b5e2a2c82522a5fa253502cf7e11c3d618 /Documentation/tty/git@git.tavy.me:linux.git | |
| parent | 17a8ce84964f243c8f89dc7353ac7e8d3137bc74 (diff) | |
mtd: mchp23k256: use SPI match data for chip caps
The driver stores chip capacity information in both the OF match table
and the SPI id table. Probe currently uses of_device_get_match_data(),
so a non-OF SPI modalias match falls back to mchp23k256_caps even when
the SPI id table selected a different part.
Use spi_get_device_match_data() so SPI id-table driver_data is consumed
when OF match data is absent. This keeps the existing default fallback
while avoiding the wrong MTD geometry for id-table-only matches.
Fixes: 4379075a870b ("mtd: mchp23k256: Add support for mchp23lcv1024")
Cc: stable@vger.kernel.org
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'Documentation/tty/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
