]> 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)
commita2631541ef3ccd82a196ab627eb5b86bd20fab3c
tree6daeb81cc7188644c9c4edbe28276bc54aa59224
parent5b7d4c896401129f773002d12571f2fe54967024
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