All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vincent Legoll <vincent.legoll@gmail.com>
To: richardcochran@gmail.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Vincent Legoll <vincent.legoll@gmail.com>
Subject: [PATCH] ptp: make PTP a menuconfig to ease disabling it all
Date: Sat,  9 Dec 2017 16:07:15 +0100	[thread overview]
Message-ID: <20171209150715.3547-1-vincent.legoll@gmail.com> (raw)

No need to get into the submenu to disable all PTP-related
config entries.

This makes it easier to disable all PTP config options
without entering the submenu. It will also enable one
to see that en/dis-abled state from the outside menu.

This is only intended to change menuconfig UI, not change
the config dependencies.

Signed-off-by: Vincent Legoll <vincent.legoll@gmail.com>
---
 drivers/ptp/Kconfig | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/ptp/Kconfig b/drivers/ptp/Kconfig
index a21ad10d613c..d3f3a9f2b0b1 100644
--- a/drivers/ptp/Kconfig
+++ b/drivers/ptp/Kconfig
@@ -2,7 +2,10 @@
 # PTP clock support configuration
 #
 
-menu "PTP clock support"
+menuconfig PTP_MENU
+	bool"PTP clock support"
+
+if PTP_MENU
 
 config PTP_1588_CLOCK
 	tristate "PTP clock support"
@@ -118,4 +121,4 @@ config PTP_1588_CLOCK_KVM
 	  To compile this driver as a module, choose M here: the module
 	  will be called ptp_kvm.
 
-endmenu
+endif # PTP_MENU
-- 
2.14.1

             reply	other threads:[~2017-12-09 15:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-09 15:07 Vincent Legoll [this message]
2017-12-11  3:28 ` [PATCH] ptp: make PTP a menuconfig to ease disabling it all Richard Cochran
2017-12-13  9:01   ` Vincent Legoll
2017-12-13 15:22     ` Richard Cochran

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171209150715.3547-1-vincent.legoll@gmail.com \
    --to=vincent.legoll@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=richardcochran@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.