battery: p9220: adjust log and log level for get_property
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 6 Feb 2017 11:29:56 +0000 (20:29 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 27 Feb 2019 02:12:28 +0000 (11:12 +0900)
The get_property function prints not matched value with info level,
so this patch adjusts value name and change to debug level.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/battery/p9220_charger.c

index bc3f878..20bfe8c 100644 (file)
@@ -1479,7 +1479,7 @@ static int p9220_chg_get_property(struct power_supply *psy,
                        break;
 #endif
                case POWER_SUPPLY_PROP_ENERGY_NOW: /* vout */
-                       pr_info("%s POWER_SUPPLY_PROP_MANUFACTURER =%d \n ", __func__, val->intval);
+                       pr_debug("%s POWER_SUPPLY_PROP_ENERGY_NOW =%d \n ", __func__, val->intval);
                        val->intval = 0;
                        break;
                        if(charger->pdata->ic_on_mode || charger->pdata->is_charging) {
@@ -1489,7 +1489,7 @@ static int p9220_chg_get_property(struct power_supply *psy,
                        break;
 
                case POWER_SUPPLY_PROP_ENERGY_AVG: /* vrect */
-                       pr_info("%s POWER_SUPPLY_PROP_MANUFACTURER =%d \n ", __func__, val->intval);
+                       pr_debug("%s POWER_SUPPLY_PROP_ENERGY_AVG =%d \n ", __func__, val->intval);
                        val->intval = 0;
                        break;
                        if(charger->pdata->ic_on_mode || charger->pdata->is_charging) {