Skip to content
Unverified Commit 68ce3a44 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

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: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e2a23aff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment