]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
power: supply: max17040: Change register transaction length from 8 bits to 16 bits
authorLiu Xiang <liuxiang_1999@126.com>
Wed, 21 Sep 2016 14:17:34 +0000 (22:17 +0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 19 Oct 2016 03:06:32 +0000 (05:06 +0200)
commit14d60bdd1ef58e3e0913f049c88daeed91a43387
treefd3dbdebadecdd550e7d08746d423c5f59a7287b
parent950b6c2d110e8df65b9d2704cc7039f3d0d9f7b2
power: supply: max17040: Change register transaction length from 8 bits to 16 bits

According to the datasheet, MAX17040 has six 16-bit registers.
Register reads and writes are only valid if all 16 bits are transferred.
Any write command that is terminated early is ignored.
So it's better to change register transacton length from 8 bits to 16 bits.

Signed-off-by: Liu Xiang <liu.xiang6@zte.com.cn>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/max17040_battery.c