power: bq2419x-charger: add thermal zone name
Venkat Reddy Talla [Thu, 5 Sep 2013 11:45:24 +0000 (16:45 +0530)]
add thermal zone name for BQ2419x charger chip

 Bug 1339831

Change-Id: Ib84189246db3d28059acb419884dd15d46cc1c0c
Signed-off-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-on: http://git-master/r/270808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>

drivers/power/bq2419x-charger.c
include/linux/power/bq2419x-charger.h

index 5e2ec67..aea6592 100644 (file)
@@ -857,6 +857,7 @@ static int bq2419x_probe(struct i2c_client *client,
                return ret;
        }
 
+       bq2419x_charger_bci.tz_name = pdata->bcharger_pdata->tz_name;
        bq2419x->bc_dev = battery_charger_register(bq2419x->dev,
                        &bq2419x_charger_bci, bq2419x);
        if (IS_ERR(bq2419x->bc_dev)) {
index 34f40b4..29577f9 100644 (file)
@@ -118,6 +118,7 @@ struct bq2419x_charger_platform_data {
        int num_consumer_supplies;
        struct regulator_consumer_supply *consumer_supplies;
        int chg_restart_time;
+       const char *tz_name; /* Thermal zone name */
 };
 
 /*