]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: wmt-sdmmc: Use of_device_get_match_data() helper
authorBean Huo <beanhuo@micron.com>
Wed, 2 Feb 2022 18:06:44 +0000 (19:06 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Feb 2022 12:06:22 +0000 (13:06 +0100)
commit7195be000dcd35cd85bdfc4980076c5d76521ff7
tree0adc557c0e1fff7a2a634dac3154edd0c8dfe1e3
parentf81000c94692a45fa695f478b4c16d8e5fe37c63
mmc: wmt-sdmmc: Use of_device_get_match_data() helper

Only the device data is needed, not the whole struct of_device_id.
Use of_device_get_match_data() instead of open coding of of_match_device().

Signed-off-by: Bean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20220202180648.1252154-2-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/wmt-sdmmc.c