main_bat 245 drivers/power/supply/s3c_adc_battery.c static struct s3c_adc_bat main_bat; main_bat 249 drivers/power/supply/s3c_adc_battery.c struct s3c_adc_bat *bat = &main_bat; main_bat 269 drivers/power/supply/s3c_adc_battery.c is_charged = charge_finished(&main_bat); main_bat 307 drivers/power/supply/s3c_adc_battery.c main_bat.client = client; main_bat 308 drivers/power/supply/s3c_adc_battery.c main_bat.pdata = pdata; main_bat 309 drivers/power/supply/s3c_adc_battery.c main_bat.volt_value = -1; main_bat 310 drivers/power/supply/s3c_adc_battery.c main_bat.cur_value = -1; main_bat 311 drivers/power/supply/s3c_adc_battery.c main_bat.cable_plugged = 0; main_bat 312 drivers/power/supply/s3c_adc_battery.c main_bat.status = POWER_SUPPLY_STATUS_DISCHARGING; main_bat 313 drivers/power/supply/s3c_adc_battery.c psy_cfg.drv_data = &main_bat; main_bat 315 drivers/power/supply/s3c_adc_battery.c main_bat.psy = power_supply_register(&pdev->dev, &main_bat_desc, &psy_cfg); main_bat 316 drivers/power/supply/s3c_adc_battery.c if (IS_ERR(main_bat.psy)) { main_bat 317 drivers/power/supply/s3c_adc_battery.c ret = PTR_ERR(main_bat.psy); main_bat 376 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(main_bat.psy); main_bat 386 drivers/power/supply/s3c_adc_battery.c power_supply_unregister(main_bat.psy); main_bat 417 drivers/power/supply/s3c_adc_battery.c main_bat.pdata->disable_charger();