commit | 6a012301e6ab34153aa2342687f5c26e79fa4b3a | [log] [tgz] |
---|---|---|
author | Erwan Gouriou <erwan.gouriou@linaro.org> | Fri Jan 29 13:45:11 2021 +0100 |
committer | Anas Nashif <anas.nashif@intel.com> | Fri Jan 29 16:57:04 2021 -0500 |
tree | aabbe6bdf2662b356dc550f0af3bad2de258b431 | |
parent | c07bb77247f8690cb3060195ccc14142e34a7206 [diff] |
drivers/adc: stm32: Use bitfield for multiple channels detection For multiple channels detection, channels variable was compared with the output of find_lsb_set which actually is a decimal number. Since channel is a bitfield the comparison was not behaving as expected (detecting several channels while only one channel was used). Rework the code to use the already existing bitfield "index" for the test. Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>