Skip to content
Commit bc345018 authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

drivers: use macro to define device structures



Replace individual device instance definitions with the macro that
expands to the equivalent change.

    F='struct device DEVICE_NAME_GET'
    git grep -l "$F" \
     | xargs sed -i -r \
       -e "s@$F"'\(([^)]*)\);@DEVICE_DECLARE(\1);@'

Signed-off-by: default avatarPeter Bigot <peter.bigot@nordicsemi.no>
parent 75a69b94
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment