Skip to content

Commit

Permalink
drivers: pps: Make PPS into a menuconfig to ease disabling
Browse files Browse the repository at this point in the history
So that there's no need to get into the submenu to disable all related config
entries.

The BROKEN PPS_GENERATOR_PARPORT now also depends on PPS

Signed-off-by: Vincent Legoll <[email protected]>
Acked-by: Rodolfo Giometti <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
vincele authored and gregkh committed May 18, 2017
1 parent f4660cc commit 98e959d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
12 changes: 3 additions & 9 deletions drivers/pps/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
# PPS support configuration
#

menu "PPS support"

config PPS
menuconfig PPS
tristate "PPS support"
---help---
PPS (Pulse Per Second) is a special pulse provided by some GPS
Expand All @@ -20,28 +18,24 @@ config PPS

To compile this driver as a module, choose M here: the module
will be called pps_core.ko.
if PPS

config PPS_DEBUG
bool "PPS debugging messages"
depends on PPS
help
Say Y here if you want the PPS support to produce a bunch of debug
messages to the system log. Select this if you are having a
problem with PPS support and want to see more of what is going on.

config NTP_PPS
bool "PPS kernel consumer support"
depends on !NO_HZ_COMMON
depends on PPS && !NO_HZ_COMMON
help
This option adds support for direct in-kernel time
synchronization using an external PPS signal.

It doesn't work on tickless systems at the moment.

endif

source drivers/pps/clients/Kconfig

source drivers/pps/generators/Kconfig

endmenu
6 changes: 2 additions & 4 deletions drivers/pps/clients/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
# PPS clients configuration
#

if PPS

comment "PPS clients support"
depends on PPS

config PPS_CLIENT_KTIMER
tristate "Kernel timer client (Testing client, use for debug)"
depends on PPS
help
If you say yes here you get support for a PPS debugging client
which uses a kernel timer to generate the PPS signal.
Expand Down Expand Up @@ -37,5 +37,3 @@ config PPS_CLIENT_GPIO
GPIO. To be useful you must also register a platform device
specifying the GPIO pin and other options, usually in your board
setup.

endif
3 changes: 2 additions & 1 deletion drivers/pps/generators/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
#

comment "PPS generators support"
depends on PPS

config PPS_GENERATOR_PARPORT
tristate "Parallel port PPS signal generator"
depends on PARPORT && BROKEN
depends on PPS && PARPORT && BROKEN
help
If you say yes here you get support for a PPS signal generator which
utilizes STROBE pin of a parallel port to send PPS signals. It uses
Expand Down

0 comments on commit 98e959d

Please sign in to comment.