]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pcf50633_charger: Fix typo
authorBalaji Rao <balajirrao@openmoko.org>
Tue, 27 Jan 2009 13:52:38 +0000 (19:22 +0530)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 2 Feb 2009 16:53:02 +0000 (19:53 +0300)
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>
drivers/power/pcf50633-charger.c

index e988ec130fcd72fe5e267b3399775d109e663cd3..41aec2acbb916ceb3d5c6ce0072408f91075bec2 100644 (file)
@@ -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) {