zephyr/samples/drivers
Gerard Marull-Paretas 3f2c2d4130 drivers: spi: make SPI dt-spec macros compatible with C++
As of today it is not possible to use SPI dt-spec macros in C++,
something known and documented. The main reason is because `cs` property
is initialized using a compound literal, something not supported in C++.
This PR takes another approach, that is to not make `cs` a pointer but a
struct member. This way, we can perform a regular initialization, at the
cost of using extra memory for unused delay/pin/flags if `cs` is not
used.

Fixes #56572

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2023-04-24 21:29:55 +02:00
..
adc Revert "adc: harness regex string not capturing sample app" 2023-04-21 09:39:08 +02:00
audio/dmic samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
can samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
clock_control_litex samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
clock_control_xec samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
counter samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
crypto samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
current_sensing
dac samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
display samples/drivers/display: Eliminate control flow in macro 2023-04-14 07:49:41 +09:00
eeprom samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
espi dts: microchip: Remove deleted property 2023-04-18 09:30:55 +02:00
flash_shell shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
fpga/fpga_controller samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
ht16k33 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
i2s/echo samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
ipm samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
jesd216 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
kscan samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
kscan_touch samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
lcd_cyclonev_socdk samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
lcd_hd44780 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_apa102 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_apa102c_bitbang samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_lp503x samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_lp3943 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_lp5562 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_lpd8806 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_pca9633 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_pwm samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_sx1509b_intensity samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_ws2812 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
led_xec samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
lora samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
mbox samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
memc samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
misc samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
peci samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
ps2 samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
smbus samples, tests: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
soc_flash_nrf samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
spi_bitbang drivers: spi: make SPI dt-spec macros compatible with C++ 2023-04-24 21:29:55 +02:00
spi_flash samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
spi_flash_at45 samples: drivers: spi_flash_at45: Add missing return statement 2023-04-17 20:19:36 +09:00
spi_fujitsu_fram samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
uart samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
virtualization/ivshmem/doorbell samples: ivshmem: Use device_is_ready() 2023-04-17 10:18:46 +02:00
w1/scanner samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
watchdog samples, tests, boards: Switch main return type from void to int 2023-04-14 07:49:41 +09:00
drivers.rst