regulator: core: Only propagate voltage changes to if it can change voltages
When we are propagating voltage changes to parent regulators don't bother if the parent does not have permission to change voltages. This simplifies error checking in the function for cases where the regulator lacks some of the voltage operations. Reported-by: NDong Aisheng <aisheng.dong@nxp.com> Tested-by: NDong Aisheng <aisheng.dong@nxp.com> Reviewed-by: NDong Aisheng <aisheng.dong@nxp.com> Signed-off-by: NMark Brown <broonie@kernel.org>
Showing
想要评论请 注册 或 登录