lkml.org 
[lkml]   [2009]   [Feb]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 1/3] pcf50633_charger: Fix typo
    On Tue, 27 Jan 2009 19:22:38 +0530
    Balaji Rao <balajirrao@openmoko.org> wrote:

    > Signed-off-by: Balaji Rao <balajirrao@openmoko.org>
    > Cc: Andy Green <andy@openmoko.com>
    > Cc: Anton Vorontsov <cbou@mail.ru>
    > ---
    > drivers/power/pcf50633-charger.c | 3 ++-
    > 1 files changed, 2 insertions(+), 1 deletions(-)
    >
    > diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c
    > index e988ec1..41aec2a 100644
    > --- a/drivers/power/pcf50633-charger.c
    > +++ b/drivers/power/pcf50633-charger.c
    > @@ -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) {

    This looks like it fixes a rather fatal bug?


    \
     
     \ /
      Last update: 2009-02-02 23:45    [W:0.025 / U:92.668 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site