fpga: altera-ps-spi: Use spi_get_device_match_data()
authorRob Herring <robh@kernel.org>
Fri, 6 Oct 2023 22:46:24 +0000 (17:46 -0500)
committerXu Yilun <yilun.xu@linux.intel.com>
Mon, 16 Oct 2023 02:19:51 +0000 (10:19 +0800)
commit3b08f52c256189b7c0d5cf1a031fa464ec20393b
treef18c82345c3daae81e17df55994b8d6ef0514887
parent4e807eb05dff41d500822f81744ec5f9c0591aa5
fpga: altera-ps-spi: Use spi_get_device_match_data()

Use preferred spi_get_device_match_data() instead of of_match_device() and
spi_get_device_id() to get the driver match data. With this, adjust the
includes to explicitly include the correct headers.

Also drop of_match_ptr for of_ef_match, which is not necessary because DT
is always used for this driver.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/20231006224624.444857-1-robh@kernel.org
[yilun.xu@intel.com: drop of_match_ptr for of_ef_match]
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/altera-ps-spi.c