ab8500_fg: Get rid of 'struct v_to_cap'
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Wed, 14 Mar 2012 00:38:32 +0000 (04:38 +0400)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Mon, 26 Mar 2012 16:41:10 +0000 (20:41 +0400)
commit450ceb2b23ed0feba8c1238f52a1d3feacd5379d
tree47749b9fe2189e7f1a8d18653db6eedd43a51e5c
parentd329129e9e10e3089550fd9bd692f67687503136
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>
drivers/power/ab8500_fg.c
include/linux/mfd/abx500/ab8500-bm.h