spi: tools: make a symbolic link to the header file spi.h
authorQuanyang Wang <quanyang.wang@windriver.com>
Thu, 22 Apr 2021 10:26:04 +0000 (18:26 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 22 Apr 2021 15:30:39 +0000 (16:30 +0100)
commitbc2e9578baed90f36abe6bb922b9598a327b0555
tree8ae9076d64b7ae227f70a3ee5dc423c649343c39
parent24b5515aa3ac075880be776bf36553ff7f9712c7
spi: tools: make a symbolic link to the header file spi.h

The header file spi.h in include/uapi/linux/spi is needed for spidev.h,
so we also need make a symbolic link to it to eliminate the error message
as below:

In file included from spidev_test.c:24:
include/linux/spi/spidev.h:28:10: fatal error: linux/spi/spi.h: No such file or directory
   28 | #include <linux/spi/spi.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.

Fixes: f7005142dace ("spi: uapi: unify SPI modes into a single spi.h")
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Link: https://lore.kernel.org/r/20210422102604.3034217-1-quanyang.wang@windriver.com
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/Makefile