acin = STATUS_AC_IN; 
acin = STATUS_AC_IN(); 
static int sharpsl_fatal_check(void){	int buff[5], temp, i, acin;	dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check entered\n");	/* Check AC-Adapter */	acin = STATUS_AC_IN;	if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) {		CHARGE_OFF();		udelay(100);		DISCHARGE_ON();	/* enable discharge */		mdelay(SHARPSL_WAIT_DISCHARGE_ON);	}	if (sharpsl_pm.machinfo->discharge1)		sharpsl_pm.machinfo->discharge1(1);	/* Check battery : check inserting battery ? */	for (i=0; i<5; i++) {		buff[i] = sharpsl_read_MainBattery();		mdelay(SHARPSL_CHECK_BATTERY_WAIT_TIME_VOLT);	}	if (sharpsl_pm.machinfo->discharge1)		sharpsl_pm.machinfo->discharge1(0);	if (acin && (sharpsl_pm.charge_mode == CHRG_ON)) {		udelay(100);		CHARGE_ON();		DISCHARGE_OFF();	}	temp = get_select_val(buff);	dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_read_MainBattery());	if ((acin && (temp < SHARPSL_FATAL_ACIN_VOLT)) ||			(!acin && (temp < SHARPSL_FATAL_NOACIN_VOLT)))		return -1;	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/c5e1ae9729d97d3c543cc70d7865df1e724da0d0/sharpsl_pm.c/clean/arch/arm/mach-pxa/sharpsl_pm.c