summaryrefslogtreecommitdiff
path: root/drivers/power/regulator
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2019-06-21 15:26:49 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2019-07-12 11:50:56 +0200
commitc8a8937b92f467aca377953db35ef7a454f4f1d8 (patch)
tree5f8cc60136f49f00ae0cae24cb88a6fbb6f25afb /drivers/power/regulator
parent67d74ce2fa7e0cdcf102504c6546ce5c23462158 (diff)
power: regulator: stm32: Fix warnings when compiling with W=1
This patch solves the following warnings: drivers/power/regulator/stm32-vrefbuf.c: In function 'stm32_vrefbuf_set_value': warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (uV == stm32_vrefbuf_voltages[i]) { ^~ Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/power/regulator')
-rw-r--r--drivers/power/regulator/stm32-vrefbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c
index 0ad6833ed0..645528e84e 100644
--- a/drivers/power/regulator/stm32-vrefbuf.c
+++ b/drivers/power/regulator/stm32-vrefbuf.c
@@ -30,7 +30,7 @@ struct stm32_vrefbuf {
struct udevice *vdda_supply;
};
-static const unsigned int stm32_vrefbuf_voltages[] = {
+static const int stm32_vrefbuf_voltages[] = {
/* Matches resp. VRS = 000b, 001b, 010b, 011b */
2500000, 2048000, 1800000, 1500000,
};