summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/abx500/ab8500-bm.h
diff options
context:
space:
mode:
authorAnton Vorontsov2012-03-14 01:38:32 +0100
committerAnton Vorontsov2012-03-26 18:41:10 +0200
commit450ceb2b23ed0feba8c1238f52a1d3feacd5379d (patch)
tree47749b9fe2189e7f1a8d18653db6eedd43a51e5c /include/linux/mfd/abx500/ab8500-bm.h
parentab8500_btemp: Get rid of 'enum adc_therm' (diff)
downloadkernel-qcow2-linux-450ceb2b23ed0feba8c1238f52a1d3feacd5379d.tar.gz
kernel-qcow2-linux-450ceb2b23ed0feba8c1238f52a1d3feacd5379d.tar.xz
kernel-qcow2-linux-450ceb2b23ed0feba8c1238f52a1d3feacd5379d.zip
ab8500_fg: Get rid of 'struct v_to_cap'
The struct is duplicated, plus when used it causes the following warnings: CHECK drivers/power/ab8500_fg.c ab8500_fg.c:818:13: warning: incorrect type in assignment (different base types) ab8500_fg.c:818:13: expected struct v_to_cap *tbl ab8500_fg.c:818:13: got struct abx500_v_to_cap *const v_to_cap_tbl CC drivers/power/ab8500_fg.o ab8500_fg.c: In function 'ab8500_fg_volt_to_capacity': ab8500_fg.c:818:6: warning: assignment from incompatible pointer type [enabled by default] Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'include/linux/mfd/abx500/ab8500-bm.h')
-rw-r--r--include/linux/mfd/abx500/ab8500-bm.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/mfd/abx500/ab8500-bm.h b/include/linux/mfd/abx500/ab8500-bm.h
index f61b7b981ce2..44d86206a253 100644
--- a/include/linux/mfd/abx500/ab8500-bm.h
+++ b/include/linux/mfd/abx500/ab8500-bm.h
@@ -255,16 +255,6 @@ struct batres_vs_temp {
int resist;
};
-/**
- * struct v_to_cap - Table for translating voltage to capacity
- * @voltage: Voltage in mV
- * @capacity: Capacity in percent
- */
-struct v_to_cap {
- int voltage;
- int capacity;
-};
-
/* Forward declaration */
struct ab8500_fg;