]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
drivers/linuxspidev: fix compilation on Linux older than 3.15
authorTomas Vanek <vanekt@fbl.cz>
Sat, 15 Feb 2025 07:11:02 +0000 (08:11 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 Feb 2025 18:33:33 +0000 (18:33 +0000)
commitf63b41bbe4ce33449ec18106620f57ba69ce7549
tree43fea07ab86ee16a5599404986143b9b77dca755
parent0d7d178ed4fe2e99de804412fde9bb11c872f10a
drivers/linuxspidev: fix compilation on Linux older than 3.15

Although the commit [1] which introduced SPI_IOC_WR_MODE32 is 10 years
old, some hardware may enforce old Linux because the vendor
didn't bother with system updates.

Change-Id: I76d0b38c8646b1be329418860916b9f01b90990d
Link: [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/include/uapi/linux/spi/spidev.h?h=linux-3.15.y&id=dc64d39b54c1e9db97a6fb1ca52598c981728157
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: https://review.openocd.org/c/openocd/+/8759
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/jtag/drivers/linuxspidev.c