]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mt65xx: Switch to device_get_match_data()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 7 Apr 2022 11:44:22 +0000 (13:44 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 15:32:07 +0000 (16:32 +0100)
commit445c228392ec111ae73e226763e586bb038417f2
tree6daeb81cc7188644c9c4edbe28276bc54aa59224
parent85b85944e30a10b7a9cb12591f5c00410a1b8930
spi: mt65xx: Switch to device_get_match_data()

Instead of performing yet another match check in the probe function,
simply switch to device_get_match_data().
This is a cleanup and brings no functional change.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220407114428.167091-3-angelogioacchino.delregno@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c