zephyr/include/devicetree
Martí Bolívar 3543df52cc api: move a devicetree.h layering violation to drivers/spi.h
The DT_SPI_DEV_CS_GPIOS_DT_SPEC_GET macro belongs in drivers/spi.h,
not devicetree.h.

It is creating a struct gpio_dt_spec, but the devicetree.h API does
not (other than in this case) and should not depend on structures that
are defined in the GPIO API. This is because the GPIO API already
depends on the devicetree.h API, so making a dependency in the reverse
direction creates a needless circular dependency.

This macro should have been added to the drivers/spi.h API from the
beginning. Move it there under a new name, SPI_CS_GPIOS_DT_SPEC_GET.

We haven't created a Zephyr release with
DT_SPI_DEV_CS_GPIOS_DT_SPEC_GET in it, so there is no need to go
through the stable API change process for devicetree.h to deprecate
and eventually remove it. We can just remove it directly.

Fixes: #42149
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2022-01-26 16:08:18 +01:00
..
clocks.h devicetree: deprecate DT_CLOCKS_LABEL APIs 2021-02-22 12:20:33 -06:00
dma.h devicetree: deprecate DT_DMAS_LABEL APIs 2021-03-18 06:20:27 -05:00
fixed-partitions.h fs: provide access to DT-defined mount structures 2020-12-27 18:16:20 +01:00
gpio.h devicetree: fix DT_GPIO_CTLR docstring 2021-01-16 08:09:51 -06:00
io-channels.h devicetree: deprecate DT_IO_CHANNELS_LABEL APIs 2021-03-02 11:28:30 -06:00
ordinals.h
pinctrl.h devicetree: add devicetree/pinctrl.h 2021-08-25 18:09:00 -04:00
pwms.h devicetree: deprecate DT_PWMS_LABEL APIs 2021-02-24 13:45:46 -06:00
spi.h api: move a devicetree.h layering violation to drivers/spi.h 2022-01-26 16:08:18 +01:00
zephyr.h drivers: can: remove DT_CHOSEN_ZEPHYR_CANBUS_LABEL macro 2021-11-09 11:19:50 +01:00