zephyr/drivers/pwm
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
..
CMakeLists.txt
Kconfig
Kconfig.dw
Kconfig.esp32
Kconfig.imx
Kconfig.litex
Kconfig.mcux
Kconfig.mcux_ftm
Kconfig.mcux_tpm
Kconfig.nrf5_sw
Kconfig.nrfx
Kconfig.pca9685
Kconfig.rv32m1_tpm
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.stm32
Kconfig.xec
pwm_dw.c
pwm_handlers.c
pwm_imx.c
pwm_led_esp32.c
pwm_litex.c
pwm_mchp_xec.c
pwm_mcux.c
pwm_mcux_ftm.c
pwm_mcux_tpm.c
pwm_nrf5_sw.c
pwm_nrfx.c
pwm_pca9685.c
pwm_pca9685.h
pwm_rv32m1_tpm.c
pwm_sam.c
pwm_sam0_tcc.c
pwm_shell.c
pwm_sifive.c
pwm_stm32.c