commit | a77d60aec70183faa68b7df4a3fa89fbaf592cf5 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sat Sep 29 10:13:46 2012 +0300 |
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | Fri Nov 16 18:36:11 2012 -0800 |
tree | e504b7cfaaf8b51f20c201ded948e1961c9c33d2 | |
parent | a5af092245a33965a4b089e8ba489c2db0f7db16 [diff] |
generic-adc-battery: Pointer math issue in gab_probe() psy->properties is an enum (32 bit type) so adding sizeof() puts us four times further along than we intended. It should be cast to a char pointer before doing the math. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>