Consistently use config FOO bool/int/hex/string "Prompt text" instead of config FOO bool/int/hex/string prompt "Prompt text" (...and a bunch of other variations that e.g. swapped the order of the type and the 'prompt', or put other properties between them). The shorthand is fully equivalent to using 'prompt'. It saves lines and avoids tricking people into thinking there is some semantic difference. Most of the grunt work was done by a modified version of https://unix.stackexchange.com/questions/26284/ how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some of the rarer variations had to be converted manually. Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
41 lines
917 B
Text
41 lines
917 B
Text
# Kconfig.sx1509b - SX1509B GPIO configuration options
|
|
#
|
|
#
|
|
# Copyright (c) 2018 Aapo Vienamo
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
menuconfig GPIO_SX1509B
|
|
bool "SX1509B I2C GPIO chip"
|
|
depends on GPIO && I2C
|
|
help
|
|
Enable driver for SX1509B I2C GPIO chip.
|
|
|
|
config GPIO_SX1509B_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 70
|
|
help
|
|
Device driver initialization priority.
|
|
|
|
if !HAS_DTS_I2C_DEVICE
|
|
|
|
config GPIO_SX1509B_DEV_NAME
|
|
string "SX1509B GPIO chip Device Name"
|
|
default "GPIO_P0"
|
|
help
|
|
Specify the device name for the SX1509B I2C GPIO chip.
|
|
|
|
config GPIO_SX1509B_I2C_ADDR
|
|
hex "SX1509B GPIO chip I2C slave address"
|
|
default 0x3e
|
|
help
|
|
Specify the I2C slave address for the SX1509B I2C GPIO chip.
|
|
|
|
config GPIO_SX1509B_I2C_MASTER_DEV_NAME
|
|
string "I2C Master to which SX1509B GPIO chip is connected"
|
|
help
|
|
Specify the device name of the I2C master device to which SX1509B
|
|
chip is binded.
|
|
|
|
endif
|