summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSven Van Asbroeck <thesven73@gmail.com>2016-08-12 09:10:27 -0400
committerBen Hutchings <ben@decadent.org.uk>2016-11-20 01:17:10 +0000
commit60a1618a6e8980b4e30916c4e645aa79b98caa39 (patch)
treee355a4b5c1a43ecaa205dbe2cf30b7fc858f9308 /include
parent72e91caed0dc3a61fac6169a79760cc3547890ff (diff)
power: supply: max17042_battery: fix model download bug.
commit 5381cfb6f0422da24cfa9da35b0433c0415830e0 upstream. The device's model download function returns the model data as an array of u32s, which is later compared to the reference model data. However, since the latter is an array of u16s, the comparison does not happen correctly, and model verification fails. This in turn breaks the POR initialization sequence. Fixes: 39e7213edc4f3 ("max17042_battery: Support regmap to access device's registers") Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Sven Van Asbroeck <TheSven73@googlemail.com> Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions