Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp675069imb; Fri, 1 Mar 2019 10:52:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzxnCQuQWpzg8QE4EXeYg6dMv5cQ9WByLluqdv64aClnO1+7tu2a6kEtGCxkJKb4ohMIN8P X-Received: by 2002:a62:11ca:: with SMTP id 71mr7005431pfr.18.1551466343516; Fri, 01 Mar 2019 10:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551466343; cv=none; d=google.com; s=arc-20160816; b=ZbJ2vNCDlXTd5JmzPq3A/47ClXmfU821RgWLqMe+n2rE68hcwfFsRSoOFaKPZDO7DQ 8wVGJFrkgJ2aeJYfSbjCdIG8jVE1/iF7JgBYCnDeUmUHafKIlELCoJ/Q4er030u2VaMG CgmaaFqmdukjcawZNHMxZ8cJrUwVb6mYRhDNktyOz30v69gbyOCAf03J+W6wtwCsqbd0 AIo+kRf1qZkec8qCX3od8aLlEHv3W3+CqrnHZERsZ/U5ZqPLMaYfUKlzXbfhMAgA1uPJ U4QqBfuBrhsC0iyaGvKmk70pbPlP0lRNxOW4ESdPayDop2Q8vOpnSlANhyPBIyd99xhJ oIGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=X5RCu8pi911c0o4NgjbjAAkGh0ps95cyw/JoFXpWM40=; b=a82Gz3cnNp4A+Fcc/Ve0tnnJik1Ee4LJT9gSXtKBHEKV3XyEfSeigi+fLPfiEnaqXx JsrYoJUJBzE8ecCWiGxPwLOog9QNQoOs+Df0kWePimsDUMbpfmQepQuAA92qljVak4zC qgyWkgEouFgh1fauOjmSrYI9GEl2SnBPC5pfEv8jVCkPn9MC1UHc+bhl+aX9c2fnBp0z G04254hRqRT4KYUUwEhq95aCZI1iXnPTE6Nt8DLy6+uAoe4p+tYF9C8EHekDrm/gXwId rwjaiWwmaYT+t9wPF6+AzkD+o38WV9YXsVbk17yJSkl6xeEOr+GiAxA2jXN5iaAfq3Ow 6Pkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si8001957pfn.155.2019.03.01.10.52.08; Fri, 01 Mar 2019 10:52:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733137AbfCASsv (ORCPT + 99 others); Fri, 1 Mar 2019 13:48:51 -0500 Received: from unicorn.mansr.com ([81.2.72.234]:56170 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726195AbfCASsv (ORCPT ); Fri, 1 Mar 2019 13:48:51 -0500 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 5FC1515632; Fri, 1 Mar 2019 18:48:40 +0000 (GMT) From: Mans Rullgard To: Miguel Ojeda Sandonis Cc: linux-kernel@vger.kernel.org Subject: [PATCH 1/3] auxdisplay: deconfuse configuration Date: Fri, 1 Mar 2019 18:48:14 +0000 Message-Id: <20190301184816.784-1-mans@mansr.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The auxdisplay Kconfig is confusing. It creates two separate menus even though the settings are closely related. Moreover, the options for setting the boot message depend on CONFIG_PARPORT even though they are used by drivers that do not. Clear up the confustion by moving the "Parallel port LCD/Keypad" menu under auxdisplay where it logically belongs. Change the boot message options to depend only on CONFIG_CHARLCD, making them accessible also when only the HD44780 is selected. Since the "Parallel port LCD/Keypad" driver now has a new dependency on CONFIG_AUXDISPLAY, rename its Kconfig symbol and keep the old one such that make oldconfig will not disable the driver. Signed-off-by: Mans Rullgard --- drivers/auxdisplay/Kconfig | 17 ++++++++++++----- drivers/auxdisplay/Makefile | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig index 57410f9c5d44..7d3fe27d6868 100644 --- a/drivers/auxdisplay/Kconfig +++ b/drivers/auxdisplay/Kconfig @@ -164,9 +164,7 @@ config ARM_CHARLCD line and the Linux version on the second line, but that's still useful. -endif # AUXDISPLAY - -menuconfig PANEL +menuconfig PARPORT_PANEL tristate "Parallel port LCD/Keypad Panel support" depends on PARPORT select CHARLCD @@ -178,7 +176,7 @@ menuconfig PANEL compiled as a module, or linked into the kernel and started at boot. If you don't understand what all this is about, say N. -if PANEL +if PARPORT_PANEL config PANEL_PARPORT int "Default parallel port number (0=LPT1)" @@ -419,8 +417,11 @@ config PANEL_LCD_PIN_BL Default for the 'BL' pin in custom profile is '0' (uncontrolled). +endif # PARPORT_PANEL + config PANEL_CHANGE_MESSAGE bool "Change LCD initialization message ?" + depends on CHARLCD default "n" ---help--- This allows you to replace the boot message indicating the kernel version @@ -444,7 +445,13 @@ config PANEL_BOOT_MESSAGE An empty message will only clear the display at driver init time. Any other printf()-formatted message is valid with newline and escape codes. -endif # PANEL +endif # AUXDISPLAY + +config PANEL + tristate "Parallel port LCD/Keypad Panel support (OLD OPTION)" + depends on PARPORT + select AUXDISPLAY + select PARPORT_PANEL config CHARLCD tristate "Character LCD core support" if COMPILE_TEST diff --git a/drivers/auxdisplay/Makefile b/drivers/auxdisplay/Makefile index 7ac6776ca3f6..cf54b5efb07e 100644 --- a/drivers/auxdisplay/Makefile +++ b/drivers/auxdisplay/Makefile @@ -10,4 +10,4 @@ obj-$(CONFIG_CFAG12864B) += cfag12864b.o cfag12864bfb.o obj-$(CONFIG_IMG_ASCII_LCD) += img-ascii-lcd.o obj-$(CONFIG_HD44780) += hd44780.o obj-$(CONFIG_HT16K33) += ht16k33.o -obj-$(CONFIG_PANEL) += panel.o +obj-$(CONFIG_PARPORT_PANEL) += panel.o -- 2.20.1