Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4062169pxf; Tue, 23 Mar 2021 01:19:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5f9cUtHPSed+jrx3WnvjbchWk6ItK8GuXnhN4UbYufFFfY2yGRD7z7xHGAGQOfEBtM+Pg X-Received: by 2002:a05:6402:1004:: with SMTP id c4mr3443767edu.364.1616487592001; Tue, 23 Mar 2021 01:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616487591; cv=none; d=google.com; s=arc-20160816; b=gqQRwVeae2rev7Qrisygp6LfWE23m4lHp3D7jFOzMqhBDZ1byOBdu7ATNaYcda4fZu v3bj+yU7Oh1M4ioPIa5b+YiaAFlJ+iIYgbSq+SqTt1iWu0jSiG3cVoYLQtilAwWTI3ve YxgnawogofjdWslv5/e4DITZLFjfMX7LXa/pmitgXJ0+aUqxzNCitGnuvEbRKdh55cRf Z9FwwlFLWN2ywSR/ZA21A4EcFit2w8hV9BuHP769Fa+lxwzvGTlBX8qw/EAn1Fcs7vkG XjY+pwBzEjb1RTEr/p5MG9MDjlyMyORFBwnz0/Vp5tUCeHi38s0BUvtiUgRr2tdy0cEY PS6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:reply-to:subject:cc:to :from:date:mime-version; bh=oZp302ZI3COO33HJ/gEdQGk2tniKhUpdIKPfHzVJ0zI=; b=t+mSWi3egV/+6sFEh0kFIp1DHTyh87G9aeYAIiQYY8Uroy1+UuOmE5SAq4XbBs6NnH 27XaZiZ4043RLq2uPG7YKqb0OACvPU4nzuOV69VTjRwir5Y8QaqsafyLwGnjItaD3mjZ k8r3grkCJ2zeafjsA4rDHHM6uHU2jOHSrkvW16XMuLqaxbFjvbxsoV69U2w9Ni0RMpL3 8nnyPbF+28NYyFutpbjp4Fip9/3L9RRxSTzUQ2Z9EUaFNpLuBHreiS6eKsuvkBzEt8EJ X848i1XLPIu29n/TeAGznvwJVX81gcYYia2SFPPCAIM0F4vt1VbMjY1yWAznVonJu236 lcmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp17si9788589ejc.744.2021.03.23.01.19.29; Tue, 23 Mar 2021 01:19:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229760AbhCWISb (ORCPT + 99 others); Tue, 23 Mar 2021 04:18:31 -0400 Received: from protonic.xs4all.nl ([83.163.252.89]:60142 "EHLO protonic.xs4all.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhCWISN (ORCPT ); Tue, 23 Mar 2021 04:18:13 -0400 Received: from fiber.protonic.nl (edge2.prtnl [192.168.1.170]) by sparta.prtnl (Postfix) with ESMTP id 671C744A022C; Tue, 23 Mar 2021 09:18:11 +0100 (CET) MIME-Version: 1.0 Date: Tue, 23 Mar 2021 09:18:11 +0100 From: robin To: Geert Uytterhoeven Cc: Rob Herring , Miguel Ojeda , Paul Burton , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 06/17] auxdisplay: Extract character line display core support Reply-To: robin@protonic.nl In-Reply-To: <20210322144848.1065067-7-geert@linux-m68k.org> References: <20210322144848.1065067-1-geert@linux-m68k.org> <20210322144848.1065067-7-geert@linux-m68k.org> User-Agent: Roundcube Webmail/1.4.8 Message-ID: <8a5e3e480022990f0889864d0ace56a0@protonic.nl> X-Sender: robin@protonic.nl Organization: Protonic Holland Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-22 15:48, Geert Uytterhoeven wrote: > Extract the character line display core support from the simple ASCII > LCD driver for the MIPS Boston, Malta & SEAD3 development boards into > its own subdriver, so it can be reused for other displays. > > Note that this moves the "message" device attribute in sysfs in a > "linedisp.N" subdirectory. > > Signed-off-by: Geert Uytterhoeven > --- > Changes to img-ascii-lcd.c are untested due to lack of hardware. > --- > drivers/auxdisplay/Kconfig | 8 + > drivers/auxdisplay/Makefile | 1 + > drivers/auxdisplay/img-ascii-lcd.c | 198 +++---------------------- > drivers/auxdisplay/line-display.c | 231 +++++++++++++++++++++++++++++ > drivers/auxdisplay/line-display.h | 43 ++++++ > 5 files changed, 304 insertions(+), 177 deletions(-) > create mode 100644 drivers/auxdisplay/line-display.c > create mode 100644 drivers/auxdisplay/line-display.h > > diff --git a/drivers/auxdisplay/Kconfig b/drivers/auxdisplay/Kconfig > index 1509cb74705a30ad..42fc7b155de09dbc 100644 > --- a/drivers/auxdisplay/Kconfig > +++ b/drivers/auxdisplay/Kconfig > @@ -25,6 +25,12 @@ config CHARLCD > This is some character LCD core interface that multiple drivers can > use. > > +config LINEDISP > + tristate "Character line display core support" if COMPILE_TEST > + help > + This is the core support for single-line character displays, to be > + selected by drivers that use it. > + > config HD44780_COMMON > tristate "Common functions for HD44780 (and compatibles) LCD > displays" if COMPILE_TEST > select CHARLCD > @@ -155,6 +161,7 @@ config IMG_ASCII_LCD > depends on HAS_IOMEM > default y if MIPS_MALTA > select MFD_SYSCON > + select LINEDISP > help > Enable this to support the simple ASCII LCD displays found on > development boards such as the MIPS Boston, MIPS Malta & MIPS SEAD3 > @@ -169,6 +176,7 @@ config HT16K33 > select FB_SYS_IMAGEBLIT > select INPUT_MATRIXKMAP > select FB_BACKLIGHT > + select LINEDISP At this point in your patch stack it's not used by the ht16k33 driver. I think it would be nicer to add this dependency when the code actually starts depending on it. So that when this patch stack gets applied partially or not in one go the chunks would be independent.