Skip to content
Commit 2a378856 authored by Markus Moll's avatar Markus Moll Committed by Pavel Machek
Browse files

leds: pca9532: correct shift computation in pca9532_getled



Each led setting occupies two bits in a corresponding led register.
Accessing these bits requires shifting and masking, which was
implemented incorrectly in pca9532_getled. Two new helper macros
concentrate the computation of those masks in one place.

Signed-off-by: default avatarMarkus Moll <mmoll@de.pepperl-fuchs.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 9adc8af4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment