Skip to content

Commit 5870b2c

Browse files
committed
Merge branch 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl
* 'fixes' of git://git.linaro.org/people/triad/linux-pinctrl: pinctrl: hide subsystem from the populace pinctrl: fix "warning: 'struct pinctrl_dev' declared inside parameter list"
2 parents 642ba5e + 45f034e commit 5870b2c

File tree

2 files changed

+8
-15
lines changed

2 files changed

+8
-15
lines changed

drivers/pinctrl/Kconfig

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,17 @@
22
# PINCTRL infrastructure and drivers
33
#
44

5-
menuconfig PINCTRL
6-
bool "PINCTRL Support"
5+
config PINCTRL
6+
bool
77
depends on EXPERIMENTAL
8-
help
9-
This enables the PINCTRL subsystem for controlling pins
10-
on chip packages, for example multiplexing pins on primarily
11-
PGA and BGA packages for systems on chip.
12-
13-
If unsure, say N.
148

159
if PINCTRL
1610

11+
menu "Pin controllers"
12+
depends on PINCTRL
13+
1714
config PINMUX
1815
bool "Support pinmux controllers"
19-
help
20-
Say Y here if you want the pincontrol subsystem to handle pin
21-
multiplexing drivers.
2216

2317
config DEBUG_PINCTRL
2418
bool "Debug PINCTRL calls"
@@ -30,14 +24,12 @@ config PINMUX_SIRF
3024
bool "CSR SiRFprimaII pinmux driver"
3125
depends on ARCH_PRIMA2
3226
select PINMUX
33-
help
34-
Say Y here to enable the SiRFprimaII pinmux driver
3527

3628
config PINMUX_U300
3729
bool "U300 pinmux driver"
3830
depends on ARCH_U300
3931
select PINMUX
40-
help
41-
Say Y here to enable the U300 pinmux driver
32+
33+
endmenu
4234

4335
endif

include/linux/pinctrl/pinctrl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ extern const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev);
121121
extern void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev);
122122
#else
123123

124+
struct pinctrl_dev;
124125

125126
/* Sufficiently stupid default function when pinctrl is not in use */
126127
static inline bool pin_is_valid(struct pinctrl_dev *pctldev, int pin)

0 commit comments

Comments
 (0)