summaryrefslogtreecommitdiffstats
path: root/drivers/sensors/cirque_pinnacle.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2022-08-12 16:22:34 -0700
committerGitHub <noreply@github.com>2022-08-12 16:22:34 -0700
commitccdba43e59fc42c9a91373c65eaa4a026539dc80 (patch)
treeb6d977bcc6f86906f9c80b0cb98ea919877abca3 /drivers/sensors/cirque_pinnacle.h
parent83f6aedd93da04a7bccaa649df6092889b099c04 (diff)
Create generic Pointing Device Pin defines (#17776)
Diffstat (limited to 'drivers/sensors/cirque_pinnacle.h')
-rw-r--r--drivers/sensors/cirque_pinnacle.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/sensors/cirque_pinnacle.h b/drivers/sensors/cirque_pinnacle.h
index 320e7d936e..fa06e047f2 100644
--- a/drivers/sensors/cirque_pinnacle.h
+++ b/drivers/sensors/cirque_pinnacle.h
@@ -78,7 +78,11 @@
# define CIRQUE_PINNACLE_SPI_DIVISOR 64
# endif
# ifndef CIRQUE_PINNACLE_SPI_CS_PIN
-# error "No Chip Select pin has been defined -- missing CIRQUE_PINNACLE_SPI_CS_PIN define"
+# ifdef POINTING_DEVICE_CS_PIN
+# define CIRQUE_PINNACLE_SPI_CS_PIN POINTING_DEVICE_CS_PIN
+# else
+# error "No Chip Select pin has been defined -- missing POINTING_DEVICE_CS_PIN or CIRQUE_PINNACLE_SPI_CS_PIN define"
+# endif
# endif
# endif
#endif