zephyr/tests/subsys
Tomasz Bursztyka 98d9b01322 device: Apply driver_api/data attributes rename everywhere
Via coccinelle:

@r_device_driver_api_and_data_1@
struct device *D;
@@
(
D->
-	driver_api
+	api
|
D->
-	driver_data
+	data
)

@r_device_driver_api_and_data_2@
expression E;
@@
(
net_if_get_device(E)->
-	driver_api
+	api
|
net_if_get_device(E)->
-	driver_data
+	data
)

And grep/sed rules for macros:

git grep -rlz 'dev)->driver_data' |
	xargs -0 sed -i 's/dev)->driver_data/dev)->data/g'

git grep -rlz 'dev->driver_data' |
	xargs -0 sed -i 's/dev->driver_data/dev->data/g'

git grep -rlz 'device->driver_data' |
	xargs -0 sed -i 's/device->driver_data/device->data/g'

Fixes #27397

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
2020-08-11 19:30:53 +02:00
..
canbus zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
dfu boards: dts: Fix broken link in comment 2020-07-31 09:00:32 -05:00
fs shell: correct build-in commands definition 2020-07-31 11:54:34 +02:00
jwt tests/samples: enable for integration testing 2020-07-30 08:00:03 -04:00
logging zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00
openthread device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
settings boards: dts: Fix broken link in comment 2020-07-31 09:00:32 -05:00
shell tests: shell_flash: fix test case scenario 2020-08-05 12:01:14 +02:00
storage device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
usb zephyr: replace zephyr integer types with C99 types 2020-06-08 08:23:57 -05:00