dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n",
status, status, linkstat);
+ if (machine_is_nokia_rx51() && rx51_with_charger_detection()) {
+ rx51_set_charger(linkstat == USB_LINK_VBUS);
+ if (twl->work_inited && linkstat == USB_LINK_VBUS) {
dev_dbg(twl->dev, "HW_CONDITIONS 0x%02x/%d; link %d\n",
status, status, linkstat);
+ if (machine_is_nokia_rx51() && rx51_with_charger_detection()) {
+ rx51_set_charger(linkstat == USB_LINK_VBUS);
+ if (twl->work_inited && linkstat == USB_LINK_VBUS) {