]> git.baikalelectronics.ru Git - kernel.git/commit
spi: mt65xx: Add and use pointer to struct device in mtk_spi_probe()
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Thu, 7 Apr 2022 11:44:23 +0000 (13:44 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 19 Apr 2022 15:32:08 +0000 (16:32 +0100)
commit91b6952dc88563cf07a3b5eec49a53867de6405d
tree3dd29fe954bb8a4208164dcceefeb69373bd3e8b
parenta2631541ef3ccd82a196ab627eb5b86bd20fab3c
spi: mt65xx: Add and use pointer to struct device in mtk_spi_probe()

In preparation for switching to dev_err_probe() in this function, add
a pointer to struct device and replace all occurrences of '&pdev->dev'
to using this 'dev' pointer.
This is done for one-line fitting of the dev_err_probe() calls.

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