lkml.org 
[lkml]   [2010]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] ds2782: Fix ds2782_get_capacity return value
    On 06/15/2010 12:44 PM, Ryan Mallon wrote:
    > The ds2782_get_capacity function should return 0 on success, not the
    > capacity value.
    >
    > Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
    > ---
    > drivers/power/ds2782_battery.c | 2 +-
    > 1 files changed, 1 insertions(+), 1 deletions(-)
    >
    > diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c
    > index d762a0c..2afbeec 100644
    > --- a/drivers/power/ds2782_battery.c
    > +++ b/drivers/power/ds2782_battery.c
    > @@ -163,7 +163,7 @@ static int ds2782_get_capacity(struct ds278x_info *info, int *capacity)
    > if (err)
    > return err;
    > *capacity = raw;
    > - return raw;
    > + return 0;
    > }
    >
    > static int ds2786_get_current(struct ds278x_info *info, int *current_uA)

    Ping, Anton?

    ~Ryan

    --
    Bluewater Systems Ltd - ARM Technology Solution Centre

    Ryan Mallon 5 Amuri Park, 404 Barbadoes St
    ryan@bluewatersys.com PO Box 13 889, Christchurch 8013
    http://www.bluewatersys.com New Zealand
    Phone: +64 3 3779127 Freecall: Australia 1800 148 751
    Fax: +64 3 3779135 USA 1800 261 2934


    \
     
     \ /
      Last update: 2010-06-20 23:37    [W:0.020 / U:30.192 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site