nvmem: Use device_get_match_data()
authorRob Herring <robh@kernel.org>
Fri, 20 Oct 2023 10:55:45 +0000 (11:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 17:19:15 +0000 (19:19 +0200)
commit0720219f4d34a88a9badb4de70cfad7585687d48
treee4bcc5ebb8375b6f0d5441c9f03735f1f7469832
parent716a8027efbb84291111764847d37cb0648ef69b
nvmem: Use device_get_match_data()

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

Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20231020105545.216052-7-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/mxs-ocotp.c
drivers/nvmem/stm32-romem.c