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: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-05-14 08:33:34 -05:00 committed by Anas Nashif
commit bc34501892
21 changed files with 21 additions and 21 deletions

View file

@ -31,7 +31,7 @@ struct wdt_sam0_dev_data {
bool timeout_valid;
};
static struct device DEVICE_NAME_GET(wdt_sam0);
DEVICE_DECLARE(wdt_sam0);
static struct wdt_sam0_dev_data wdt_sam0_data = { 0 };