google_charger: support state2power for thermal fcc and dc_in
Bug: 235316638
Signed-off-by: Jack Wu <[email protected]>
Change-Id: Ib377330aa771b364634b307f734018ba2fff0a8d
diff --git a/google_bms.h b/google_bms.h
index 164ba57..497f6ac 100644
--- a/google_bms.h
+++ b/google_bms.h
@@ -592,6 +592,15 @@
CSI_STATUS_Charging = 200, // All good
};
+#define to_cooling_device(_dev) \
+ container_of(_dev, struct thermal_cooling_device, device)
+
+#define DEBUG_ATTRIBUTE_WO(name) \
+static const struct file_operations name ## _fops = { \
+ .open = simple_open, \
+ .llseek = no_llseek, \
+ .write = name ## _store, \
+}
#endif /* __GOOGLE_BMS_H_ */