]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: fan53555: Use of_device_get_match_data() to simplify probe
authorJisheng Zhang <jszhang@marvell.com>
Thu, 20 Jul 2017 08:42:17 +0000 (16:42 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 20 Jul 2017 11:19:19 +0000 (12:19 +0100)
commita4c36285a69c742df1c10705f99cd32bd31854a5
tree31e31d13ed5c861f1a9e2cf4fdb18242e15895fc
parentc1e7f93cfc9ccbe5772b8d0eb3da04ab3bcc7881
regulator: fan53555: Use of_device_get_match_data() to simplify probe

if fan53555_regulator_probe() is called and the "client->dev.of_node"
isn't NULL, it means OF registered a device with a valid compatible
string, so match cannot be NULL.

Use of_device_get_match_data() to retrieve the drvdata pointer.  No
functional change intended.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/fan53555.c