power: battery: sprd: remove build warnings 39/165539/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jan 2018 03:44:19 +0000 (12:44 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 2 Jan 2018 03:46:47 +0000 (12:46 +0900)
Remove build warnings from sprd battery.

Change-Id: I5b30f1d1f35748da2b02e2e6cacad054cd0547c2
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/power/sprd_battery.c
property/vbat_check.c

index 884d527c446adeceaf92750928256b0496fa70fe..ed58a4f67554491ca828e3016eccf9f84d1a1a8f 100644 (file)
@@ -229,11 +229,11 @@ static uint32_t sprdfgu_poweron_type_read(void)
 #define mdelay(_ms) udelay(_ms*1000)
 unsigned int fgu_vol, fgu_cur;
 
-unsigned int get_fgu_vol() {
+unsigned int get_fgu_vol(void) {
        return fgu_vol;
 }
 
-unsigned int get_fgu_cur() {
+unsigned int get_fgu_cur(void) {
        return fgu_cur;
 }
 
index 603efdfcf347c57494bd7fd36f1c0786d8748977..0741ff4ba73dc87754a8a136b020e7e8a89a84d9 100644 (file)
@@ -4,6 +4,7 @@
 unsigned int get_bat_low_level(void);
 unsigned int get_bat_low_level_chg(void);
 int charger_connected(void);
+extern uint16_t sprdbat_auxadc2vbatvol(uint16_t adcvalue);
 
 #define _BUF_SIZE 10
 uint32_t vbat_buf[_BUF_SIZE];