Lines Matching refs:sharpsl_pm
64 if (sharpsl_pm.flags & SHARPSL_SUSPENDED) { in spitz_charge()
93 spitz_last_ac_status = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_presuspend()
136 int acin = sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN); in spitz_should_wakeup()
141 sharpsl_pm.flags |= SHARPSL_DO_OFFLINE_CHRG; in spitz_should_wakeup()
142 dev_dbg(sharpsl_pm.dev, "AC Inserted\n"); in spitz_should_wakeup()
145 dev_dbg(sharpsl_pm.dev, "AC Removed\n"); in spitz_should_wakeup()
147 sharpsl_pm.machinfo->charge(0); in spitz_should_wakeup()
148 sharpsl_pm.charge_mode = CHRG_OFF; in spitz_should_wakeup()
164 dev_dbg(sharpsl_pm.dev, "is_resume: %x\n", is_resume); in spitz_should_wakeup()
183 return gpio_get_value(sharpsl_pm.machinfo->gpio_batlock); in spitzpm_read_devdata()
185 return gpio_get_value(sharpsl_pm.machinfo->gpio_batfull); in spitzpm_read_devdata()
187 return gpio_get_value(sharpsl_pm.machinfo->gpio_fatal); in spitzpm_read_devdata()