Home
last modified time | relevance | path

Searched hist:"1764 a894b6d8b872907afbb33e158f465f966b95" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/drivers/
H A Dstpmic1.c1764a894b6d8b872907afbb33e158f465f966b95 Wed Apr 29 05:42:33 UTC 2020 Etienne Carriere <etienne.carriere@linaro.org> stpmic1: fix regulator identification for low power configuration

Fix name identification sequence in stpmic1_lp_voltage_cfg()
and stpmic1_lp_set_voltage(). Identify names starting with "buck"
using strncmp(name, "buck", 4), not strcmp(name, "buck") that
tests also string null termination. Fix also tests on regulator
names starting with "ldo".

This change factorize all identification with helper functions
regu_is_buck() and regu_is_ldo_but_ldo4();

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jerome Forissier <jerome@forissier.org>