mfd: palmas: Use device_get_match_data() to simplify the code
authorye xingchen <ye.xingchen@zte.com.cn>
Thu, 17 Nov 2022 11:52:24 +0000 (19:52 +0800)
committerLee Jones <lee@kernel.org>
Wed, 7 Dec 2022 13:28:16 +0000 (13:28 +0000)
commitd0871b5a22b46fc81887e35e4559710cd53fcfae
tree002ad02b5744a4e44ff414319b1007a14bda0758
parentc8cf6e2328ce42ba016f6c321ba663d07e6f70ff
mfd: palmas: Use device_get_match_data() to simplify the code

Directly get the match data with device_get_match_data().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/202211171952240424511@zte.com.cn
drivers/mfd/palmas.c