diff options
author | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
---|---|---|
committer | Srikant Patnaik | 2015-01-11 12:28:04 +0530 |
commit | 871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch) | |
tree | 8718f573808810c2a1e8cb8fb6ac469093ca2784 /drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h | |
parent | 9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff) | |
download | FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2 FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip |
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized.
Changes are basically to make it look like kernel structure.
Diffstat (limited to 'drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h')
-rwxr-xr-x | drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h b/drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h new file mode 100755 index 00000000..212d7e30 --- /dev/null +++ b/drivers/power/wmt_battery/gauge/ug31xx/ug31xx_gauge.h @@ -0,0 +1,65 @@ +/*
+ * Copyright (c) 2012, ASUSTek, Inc. All Rights Reserved.
+ */
+
+#ifndef __UPI_ug31xx_GAUGE_H
+#define __UPI_ug31xx_GAUGE_H
+
+//#define UG31XX_DYNAMIC_POLLING
+
+#define UG31XX_DEV_NAME "ug31xx-gauge"
+
+#ifdef UG31XX_DEBUG_ENABLE
+#define GAUGE_notice(format, arg...) \
+ printk(KERN_DEBUG "GAUGE: [%s] " format , __func__ , ## arg);
+#else
+#define GAUGE_notice(format, arg...)
+#endif
+
+#define GAUGE_err(format, arg...) \
+ printk(KERN_ERR "GAUGE: [%s] " format , __FUNCTION__ , ## arg);
+
+#define UPI_DEBUG_STRING (320)
+
+typedef enum {
+ DRV_NOT_READY = 0,
+ DRV_INIT_OK,
+} drv_status_t;
+
+struct ug31xx_gauge {
+ struct i2c_client *client;
+ struct device *dev;
+ struct delayed_work batt_info_update_work;
+ struct delayed_work ug31_gauge_info_work;
+ struct wake_lock cable_wake_lock;
+ struct mutex info_update_lock;
+ u32 cable_status;
+ u32 polling_time;
+ u32 batt_volt;
+ u32 batt_capacity;
+ u32 batt_charge_now;
+ u32 batt_charge_full;
+ int batt_current;
+ int batt_temp;
+ int batt_status;
+
+ /// [AT-PM] : Add for version ; 01/30/2013
+ char gauge_debug[UPI_DEBUG_STRING];
+
+ /// [AT-PM] : Alarm status ; 04/19/2013
+ u8 alarmSts;
+};
+
+enum {
+ PWR_SUPPLY_BATTERY = 0,
+ PWR_SUPPLY_AC,
+ PWR_SUPPLY_USB
+};
+
+enum {
+ NO_CABLE = 0,
+ USB_PC_CABLE = 1,
+ AC_ADAPTER_CABLE = 3
+};
+
+#endif /*__UPI_ug31xx_GAUGE_H */
|