From 2a8349950ea2ab8b42c70c7abc7a7dbbfd03d6f9 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Fri, 1 Jun 2018 05:43:24 +0200 Subject: [PATCH] drivers: sensors: Consistently quote "GPIO_0" string default These cases weren't caught by the heuristic used by the warning added in commit 6eabea3a7e6f ("Kconfiglib: Warn for unquoted string defaults"), because "GPIO_0" has no lowercase characters in it. Unquoted Kconfig values are are indistinguishable from reference to (undefined) symbols in general. Quoting all string defaults will help find "true" references to undefined Kconfig symbols, and makes it clearer that the value is constant. Signed-off-by: Ulf Magnusson --- drivers/sensor/bmc150_magn/Kconfig | 2 +- drivers/sensor/lsm9ds0_gyro/Kconfig | 2 +- drivers/sensor/sx9500/Kconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/sensor/bmc150_magn/Kconfig b/drivers/sensor/bmc150_magn/Kconfig index 07ab7d846f7..03c26351ae3 100644 --- a/drivers/sensor/bmc150_magn/Kconfig +++ b/drivers/sensor/bmc150_magn/Kconfig @@ -112,7 +112,7 @@ config BMC150_MAGN_TRIGGER_DRDY config BMC150_MAGN_GPIO_DRDY_DEV_NAME string "GPIO device where BMC150_MAGN data ready interrupt is connected" depends on BMC150_MAGN_TRIGGER_DRDY - default GPIO_0 + default "GPIO_0" help Specify the device name of the GPIO controller the BMC150_MAGN interrupt is connected to. diff --git a/drivers/sensor/lsm9ds0_gyro/Kconfig b/drivers/sensor/lsm9ds0_gyro/Kconfig index 21d1e6c7563..cd92f568402 100644 --- a/drivers/sensor/lsm9ds0_gyro/Kconfig +++ b/drivers/sensor/lsm9ds0_gyro/Kconfig @@ -122,7 +122,7 @@ config LSM9DS0_GYRO_TRIGGER_DRDY config LSM9DS0_GYRO_GPIO_DRDY_DEV_NAME string "GPIO device where LSM9DS0_GYRO data ready interrupt is connected" depends on LSM9DS0_GYRO_TRIGGER_DRDY - default GPIO_0 + default "GPIO_0" help Specify the device name of the GPIO controller the BMC150_MAGN interrupt is connected to. diff --git a/drivers/sensor/sx9500/Kconfig b/drivers/sensor/sx9500/Kconfig index b209fabab12..91c22db56fb 100644 --- a/drivers/sensor/sx9500/Kconfig +++ b/drivers/sensor/sx9500/Kconfig @@ -69,7 +69,7 @@ config SX9500_TRIGGER config SX9500_GPIO_CONTROLLER string "GPIO controller for SX9500 interrupt" depends on SX9500 && SX9500_TRIGGER - default GPIO_0 + default "GPIO_0" help Specify the device name of the GPIO controller the SX9500 interrupt is connected to.