]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
power: regulator: stm32: Fix warnings when compiling with W=1
authorPatrick Delaunay <patrick.delaunay@st.com>
Fri, 21 Jun 2019 13:26:49 +0000 (15:26 +0200)
committerPatrick Delaunay <patrick.delaunay@st.com>
Fri, 12 Jul 2019 09:50:56 +0000 (11:50 +0200)
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>
drivers/power/regulator/stm32-vrefbuf.c

index 0ad6833ed0413d68a38e287e702e74ec2350425a..645528e84e86a982ff9217dc9e8c7867f89bede4 100644 (file)
@@ -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,
 };