From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751388AbdLIPHb (ORCPT ); Sat, 9 Dec 2017 10:07:31 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:36257 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750886AbdLIPHa (ORCPT ); Sat, 9 Dec 2017 10:07:30 -0500 X-Google-Smtp-Source: AGs4zMb5gpiTuf073amkVpFJqoWlX4tk3C+GyP1pGS3EobkJQecHxwb4Y2z7bX+H+ehPGMEzX4Ncng== From: Vincent Legoll To: richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Vincent Legoll Subject: [PATCH] ptp: make PTP a menuconfig to ease disabling it all Date: Sat, 9 Dec 2017 16:07:15 +0100 Message-Id: <20171209150715.3547-1-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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