Skip to content
Commit de2efdee authored by Andrzej Głąbek's avatar Andrzej Głąbek Committed by Anas Nashif
Browse files

include: adc: Fix initialization of .differential in ADC_CHANNEL_CFG_DT



This is a follow-up to commit ff0f389d.

When the `zephyr,differential` property is used together with a driver
that selects `ADC_CONFIGURABLE_INPUTS`, the `differential` field is
initialized twice what causes a compilation error in C++. Fix this by
refactoring the logic around initialization of `.differential`.

Signed-off-by: default avatarAndrzej Głąbek <andrzej.glabek@nordicsemi.no>
parent eb4c76a6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment