Explorar o código

Merge git://git.infradead.org/users/cbou/battery-2.6.29

* git://git.infradead.org/users/cbou/battery-2.6.29:
  pcf50633_charger: Fix typo
Linus Torvalds %!s(int64=17) %!d(string=hai) anos
pai
achega
b578f3fcca
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      drivers/power/pcf50633-charger.c

+ 2 - 1
drivers/power/pcf50633-charger.c

@@ -199,7 +199,8 @@ static int adapter_get_property(struct power_supply *psy,
 			enum power_supply_property psp,
 			enum power_supply_property psp,
 			union power_supply_propval *val)
 			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;
 	int ret = 0;
 
 
 	switch (psp) {
 	switch (psp) {