diff options
author | Matthias Brugger <matthias.bgg@gmail.com> | 2017-10-21 10:17:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-20 10:10:34 +0100 |
commit | 48185ffb6dc3eb64846039117d76148d3e3d7022 (patch) | |
tree | 93feccfd8d27ac53b1965e11b0ebe0af798940c8 | |
parent | 9cd01922985ce5c00cf050f12daef304cc452761 (diff) | |
download | linux-rpi3-48185ffb6dc3eb64846039117d76148d3e3d7022.tar.gz linux-rpi3-48185ffb6dc3eb64846039117d76148d3e3d7022.tar.bz2 linux-rpi3-48185ffb6dc3eb64846039117d76148d3e3d7022.zip |
soc: mediatek: pwrap: fix compiler errors
[ Upstream commit fb2c1934f30577756e55e24e8870b45c78da3bc2 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/soc/mediatek/mtk-pmic-wrap.c | 2 |
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 c2048382830f..e3df1e96b141 100644 --- a/drivers/soc/mediatek/mtk-pmic-wrap.c +++ b/drivers/soc/mediatek/mtk-pmic-wrap.c @@ -522,7 +522,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); }; |