commit | bc34501892bfc402e01434667a825c9dd83d7abc | [log] [tgz] |
---|---|---|
author | Peter Bigot <peter.bigot@nordicsemi.no> | Thu May 14 08:33:34 2020 -0500 |
committer | Anas Nashif <anas.nashif@intel.com> | Mon Jun 08 15:01:52 2020 -0400 |
tree | 8d850d8a38bf888f21c8af3921c91bedc979f774 | |
parent | 75a69b940ead63645bde61e1a2fdb3a8da73914c [diff] |
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>