]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
regulator: core: Slightly improve readability of _regulator_get_enable_time
authorAxel Lin <axel.lin@ingics.com>
Sat, 4 May 2019 03:33:36 +0000 (11:33 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:32:28 +0000 (17:32 +0900)
commit68ce3a4461726ebd3acf9d94841a46386402a058
tree73b915a492355e057b231c8038fa4fcc2959556f
parente2a23affe6a6a15111ae56edd7e4f3c9673ef201
regulator: core: Slightly improve readability of _regulator_get_enable_time

The logic is equivalent, but it looks more straightforward this way:
If rdev->desc->ops->enable_time is set, call it.
Otherwise fallback to return rdev->desc->enable_time.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c