Commit cac7479e authored by Richard Fitzgerald's avatar Richard Fitzgerald Committed by DidntRead
Browse files

switch: arizona: Only set the EDRE manual bits for OUT1



The handling of setting EDRE manual when OUT1 clamps are active was
assuming all the other bits in the register are always 0 so can
safely be overwritten with 0 using a regmap_write(). This isn't
good practice and can lead to hard-to-find bugs later if any of the
other bits are non-zero, so change to using an update_bits() so we
only change the bits we need to.

Change-Id: Ieba91a5f67cf6167d4dad7c5ed5d514080aa15ca
Signed-off-by: default avatarRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
parent 49a35332
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment