lkml.org 
[lkml]   [2009]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[rfc/patch 07/15] power: bq27200: add missing suplicants
    Date
    add the missing suplicants to bq27200 driver.

    Signed-off-by: Felipe Balbi <me@felipebalbi.com>
    ---
    drivers/power/bq27200_battery.c | 6 ++++++
    1 files changed, 6 insertions(+), 0 deletions(-)

    diff --git a/drivers/power/bq27200_battery.c b/drivers/power/bq27200_battery.c
    index 44375d6..385a505 100644
    --- a/drivers/power/bq27200_battery.c
    +++ b/drivers/power/bq27200_battery.c
    @@ -164,6 +164,10 @@ static int bq27200_get_property(struct power_supply *psy,
    return 0;
    }

    +static char *bq27200_supplied_to[] = {
    + "main-battery",
    +};
    +
    static int bq27200_battery_probe(struct i2c_client *client,
    const struct i2c_device_id *id)
    {
    @@ -186,6 +190,8 @@ static int bq27200_battery_probe(struct i2c_client *client,
    bq->bat.properties = bq27200_props;
    bq->bat.num_properties = ARRAY_SIZE(bq27200_props);
    bq->bat.get_property = bq27200_get_property;
    + bq->bat.supplied_to = bq27200_supplied_to;
    + bq->bat.num_supplicants = ARRAY_SIZE(bq27200_supplied_to);

    retval = power_supply_register(&client->dev, &bq->bat);
    if (retval) {
    --
    1.6.1.3


    \
     
     \ /
      Last update: 2009-07-12 20:31    [W:0.023 / U:31.040 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site