forked from Minki/linux
pcf50633_charger: Fix typo
container_of(psy, struct pcf50633_mbc, usb); should be container_of(psy, struct pcf50633_mbc, adapter); Signed-off-by: Balaji Rao <balajirrao@openmoko.org> Cc: Andy Green <andy@openmoko.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
This commit is contained in:
parent
45c82b5a77
commit
ccc9c8b91c
@ -199,7 +199,8 @@ static int adapter_get_property(struct power_supply *psy,
|
||||
enum power_supply_property psp,
|
||||
union power_supply_propval *val)
|
||||
{
|
||||
struct pcf50633_mbc *mbc = container_of(psy, struct pcf50633_mbc, usb);
|
||||
struct pcf50633_mbc *mbc = container_of(psy,
|
||||
struct pcf50633_mbc, adapter);
|
||||
int ret = 0;
|
||||
|
||||
switch (psp) {
|
||||
|
Loading…
Reference in New Issue
Block a user