google_cpm: fix behavior of active

The debugs entry in /g/google_cpm/active can be used to force a
specific charger. Use 0 for default, >1 for the other chargers.

Bug: 182970733
Signed-off-by: AleX Pelosi <[email protected]>
Change-Id: I80cad74e9522f5b8ee393847ba74c1b29c803127
diff --git a/google_dc_pps.h b/google_dc_pps.h
index a77a1ac..bf76e41 100644
--- a/google_dc_pps.h
+++ b/google_dc_pps.h
@@ -90,6 +90,11 @@
 /* */
 #define pps_is_disabled(x) (((x) == PPS_NOTSUPP) || ((x) == PPS_DISABLED))
 
+#define pps_name(pps_psy) \
+	((pps_psy) && (pps_psy)->desc && (pps_psy)->desc->name ? \
+		(pps_psy)->desc->name : "<>")
+
+
 struct dentry;
 int pps_init(struct pd_pps_data *pps_data, struct device *dev,
 	     struct power_supply *pps_psy);