summaryrefslogtreecommitdiff
path: root/drivers/soc/mediatek
diff options
context:
space:
mode:
authorMatthias Brugger <matthias.bgg@gmail.com>2017-10-21 11:17:47 +0300
committerMatthias Brugger <matthias.bgg@gmail.com>2017-10-21 11:17:47 +0300
commitfb2c1934f30577756e55e24e8870b45c78da3bc2 (patch)
treec10617ef34e129839b67471c59bf0acf8ec5df7d /drivers/soc/mediatek
parent598f9b2ec479715decb8f6aea59a45459159c515 (diff)
downloadlinux-fb2c1934f30577756e55e24e8870b45c78da3bc2.tar.xz
soc: mediatek: pwrap: fix compiler errors
When compiling using sparse, we got the following error: drivers/soc/mediatek/mtk-pmic-wrap.c:686:25: error: dubious one-bit signed bitfield Changing the data type to unsigned fixes this. Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Diffstat (limited to 'drivers/soc/mediatek')
-rw-r--r--drivers/soc/mediatek/mtk-pmic-wrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/mediatek/mtk-pmic-wrap.c b/drivers/soc/mediatek/mtk-pmic-wrap.c
index 5d61d127e1d7..912edf93c192 100644
--- a/drivers/soc/mediatek/mtk-pmic-wrap.c
+++ b/drivers/soc/mediatek/mtk-pmic-wrap.c
@@ -683,7 +683,7 @@ struct pmic_wrapper_type {
u32 int_en_all;
u32 spi_w;
u32 wdt_src;
- int has_bridge:1;
+ unsigned int has_bridge:1;
int (*init_reg_clock)(struct pmic_wrapper *wrp);
int (*init_soc_specific)(struct pmic_wrapper *wrp);
};