Revision 5c4b2aa3fd1dc30af098de5dec766a817621ace2 authored by Axel Lin on 22 November 2011, 06:47:44 UTC, committed by Mark Brown on 22 November 2011, 13:06:21 UTC
In the case of ((max9877_regs[reg] >> shift) & mask) != val
but ((max9877_regs[reg2] >> shift) & mask) == val2,
current code does not update the registers.

Fix the logic to update registers if either val or val2 is changed.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
1 parent 72531c9
History
File Mode Size
other
Makefile -rw-r--r-- 374 bytes
cs8427.c -rw-r--r-- 18.0 KB
i2c.c -rw-r--r-- 8.3 KB
tea6330t.c -rw-r--r-- 11.3 KB

back to top