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:
parent
75a69b940e
commit
bc34501892
21 changed files with 21 additions and 21 deletions
|
@ -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 };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue