static int twl4030_madc_bat_get_temp(void) { return madc_read(TWL4030_MADC_BTEMP) * 10; }
static int twl4030_madc_bat_get_voltage(void) { return madc_read(TWL4030_MADC_VBAT); }
static int twl4030_madc_bat_get_current(void) { return madc_read(TWL4030_MADC_ICHG) * 1000; }
static int twl4030_madc_bat_get_charging_status(void) { return (madc_read(TWL4030_MADC_ICHG) > 0) ? 1 : 0; }
static int twl4030_madc_bat_get_temp(struct twl4030_madc_battery *bt) { return madc_read(bt->channel_temp) * 10; }
static int twl4030_madc_bat_get_current(struct twl4030_madc_battery *bt) { return madc_read(bt->channel_ichg) * 1000; }
static int twl4030_madc_bat_get_voltage(struct twl4030_madc_battery *bt) { return madc_read(bt->channel_vbat); }
static int twl4030_madc_bat_get_charging_status(struct twl4030_madc_battery *bt) { return (madc_read(bt->channel_ichg) > 0) ? 1 : 0; }