Skip to content
Commit fe10897f authored by Daniel Leung's avatar Daniel Leung Committed by Carles Cufí
Browse files

uart: ns16550: simplify DLF and PCP related macros



This simplifies DLF and PCP enabling devicetree macros with
DT_ANY_INST_HAS_PROP_STATUS_OKAY() instead of the complicated
ones.

Also, this moves the macro to initialize struct elements into
the struct initializer itself. This makes it clearer on which
element is being initialized directly inside the struct
initializer instead of having to do mental macro trampoline
to find the correct macro.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 2899df62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment