>> On 10/14/2010 9:36 AM, Pallala, Ramakrishna wrote: >> > Hi Arjan, >> >> Thanks for the comments. I am resubmitting the Batter driver patch >> with locking enabled. >> >> I am using total five locks in this driver. >> >> Mutex batt_lock to protect battery property variables like >> status,heath etc.. > > > drivers/power/intel_mdf_battery.c: At top level: > drivers/power/intel_mdf_battery.c:309:24: error: field 'chrg_type' has > incomplete type > drivers/power/intel_mdf_battery.c: In function 'msic_batt_do_charging': > drivers/power/intel_mdf_battery.c:1218:32: error: 'CHRG_CURR_SDP_LOW' > undeclared (first use in this function) > drivers/power/intel_mdf_battery.c:1218:32: note: each undeclared > identifier is reported only once for each function it appears in > drivers/power/intel_mdf_battery.c: In function 'msic_update_disconn_status': > drivers/power/intel_mdf_battery.c:1277:15: error: > 'USBCHRG_EVENT_SUSPEND' undeclared (first use in this function) > drivers/power/intel_mdf_battery.c: At top level: > drivers/power/intel_mdf_battery.c:1480:63: warning: 'struct otg_bc_cap' > declared inside parameter list > drivers/power/intel_mdf_battery.c:1480:63: warning: its scope is only > this definition or declaration, which is probably not what you want > drivers/power/intel_mdf_battery.c: In function 'msic_charger_callback': > drivers/power/intel_mdf_battery.c:1495:43: error: 'USBCHRG_EVENT_UPDATE' > undeclared (first use in this function)
Hi Arjan, All the errors are due to dependency on USB_PENWELL_OTG (linux/usb/penwell_otg.h) Battery driver patch depends on the following USB OTG patches. http://lists.meego.com/pipermail/meego-kernel/2010-October/000235.html http://lists.meego.com/pipermail/meego-kernel/2010-October/000236.html http://lists.meego.com/pipermail/meego-kernel/2010-October/000237.html Thanks, Ram _______________________________________________ Meego-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
