Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp922369ybp; Thu, 17 Oct 2019 05:39:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPNihnzePqGNcYYc9/R/ccA2fkWMIll3MsaDsqjAlOJIgzlGVvQPuu74ZSSit0ZSgRkkdM X-Received: by 2002:a17:906:6087:: with SMTP id t7mr3287666ejj.58.1571315943969; Thu, 17 Oct 2019 05:39:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571315943; cv=none; d=google.com; s=arc-20160816; b=g0uiTLZDzlItBrqZ0aLNTWTmJmfg7W1bMUI8reK6bxeFCRWDMUuyqFzbOr6eJV1OM2 3g7V59f5p8nCn3oir1ZgKW+net2Yh/Jtmczq2IfK7aOb5/Sb9xranrt6TIi0Tix8oic9 fBaAU2+kb0QOeGmT9A8lUzKq1pRh8HUtxybndgSQc48cKKsRjN7Tw7GWVd8SI7xOtkFb ZVjNkNiLR5RyfXkE2fIrANLUYCMWBbUCvui7JyYDezANiZgo5RJJ6JoORMScqvrrMDgr 0IaLPiLdIwEGpglbANxVscmin8kf1W9iA3Esx9yZexMf+IkVKxQGjdSGQqISZcZsylTF C92w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tNeMRNIfdjHwkdsyXewzfu5Z/8d+Ipu1WBE/Nji2j6o=; b=XgaBqkcKIkAMKxV6dN1XoFkf50f2DJdlkvLDW8AL8MO+1hh1Dk1K0YLa+odX2ohSBN sU73D8CnrxH1C/bIEYTSgaUjto1+gSvXR8tEtB0XK1aWGozpSS353DPus50xxaykXR2W dVEzEzylPcJRBemRdXkx8DfFY6KoPPET84b13gF9EZpBSXFKHJCtw8t/E8hYjwbMm6ip qOZAZlGCHLwlqFMpTbhZfCB+MMVatNbT0A5uAvzKD9STZ5pNhXYCIbF++hqhZ4tbtxa1 U2Jf7BkvpTAj99asqmteZkPhZVMbnrQ4JnRyi6v682uvMrK2d0Jh0Kcs6j7amUUXaCXW pZmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HeZJ0LsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p4si1198451ejj.334.2019.10.17.05.38.40; Thu, 17 Oct 2019 05:39:03 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=HeZJ0LsX; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406516AbfJPQxd (ORCPT + 99 others); Wed, 16 Oct 2019 12:53:33 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:38834 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406479AbfJPQxd (ORCPT ); Wed, 16 Oct 2019 12:53:33 -0400 Received: by mail-lf1-f66.google.com with SMTP id u28so18076518lfc.5 for ; Wed, 16 Oct 2019 09:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tNeMRNIfdjHwkdsyXewzfu5Z/8d+Ipu1WBE/Nji2j6o=; b=HeZJ0LsXW7mmUON1V5xmhDSncNZB6lkZZK/aQWqiaeWfoLceQmVHBsDrCPQSNheJR8 IlGmQI4GJ0a3KeeFkLuB74++cbk9zF0MDCMgauIVVv0MwlsN3fCAwETly3Hs6g4/FkHw iEk8N0MQZJH+hJFBo2HVA6OtUhJMuYfZ5sPusj5OQxOppuNXZYOgYxDnB9MIBb3gxyzH 1icSwpBDJK0X2hCL65Fadnjyq+4tckml3p2rGvN2a9MV48WAFf+YIo2fnTLKfDbQ6ASd XuEN3r0BA457vpI/RA+I/+JpNL3X/U4hmzV6WfI7z2bL2ECB+9Oj+VZvzNfX+X+uijTK m2Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tNeMRNIfdjHwkdsyXewzfu5Z/8d+Ipu1WBE/Nji2j6o=; b=AsV1blh07LKRzdGKlHGA3s8wY/3Nx80q2WR+iDI/caPTnLXQ16y46+MpDAj2N+xuJN inu1RJCmP918bVhFWZ6Gun5a2drMk5jZAXm2LItxybWNk+3xNdHyq/57xap9JhOMQdQc REVQ4jJxJplVamUnyjZMqa60hjG3OmqwwTeWXEGELq+Sh/7Z95b4MwHzCRYKzVACUvSN cIM9xFXhSlr6vSPqUBVxxeWqzNqn2GpN7qKn//PFUgzAVjfbJ66dRFL3EsQJHfIzkkvQ j6fQuA3tnvHup1+K1oXRnArgZpzH8xjwWyg7eXJgVAQneq+pIzYMZeOmnA419lF7wVaD B43g== X-Gm-Message-State: APjAAAVzIgAKo09KHLyGjIcNpA4vTQS54kag2ldFQi1hu+tcOlNdKt5T TJAeZEWfhm/ZCXdQxeUpWkEVrPmZ//eYetFk/Fk= X-Received: by 2002:a19:6e0a:: with SMTP id j10mr9861743lfc.131.1571244811925; Wed, 16 Oct 2019 09:53:31 -0700 (PDT) MIME-Version: 1.0 References: <20191016082430.5955-1-poeschel@lemonage.de> In-Reply-To: <20191016082430.5955-1-poeschel@lemonage.de> From: Miguel Ojeda Date: Wed, 16 Oct 2019 18:53:20 +0200 Message-ID: Subject: Re: [PATCH 1/3] auxdisplay: Make charlcd.[ch] more general To: Lars Poeschel Cc: Willy Tarreau , Ksenija Stanojevic , open list , Geert Uytterhoeven , Geert Uytterhoeven , Andy Shevchenko Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 16, 2019 at 10:24 AM Lars Poeschel wrote: > > charlcd.c contains lots of hd44780 hardware specific stuff. It is nearly > impossible to reuse the interface for other character based displays. > The current users of charlcd are the hd44780 and the panel drivers. > This does factor out the hd44780 specific stuff out of charlcd into a > new module called hd44780_common. > charlcd gets rid of the hd44780 specfics and more generally useable. > The hd44780 and panel drivers are modified to use the new > hd44780_common. > This is tested on a hd44780 connected through the gpios of a pcf8574. > > Signed-off-by: Lars Poeschel > --- > drivers/auxdisplay/Kconfig | 16 + > drivers/auxdisplay/Makefile | 1 + > drivers/auxdisplay/charlcd.c | 591 ++++++++-------------------- > drivers/auxdisplay/charlcd.h | 109 ++++- > drivers/auxdisplay/hd44780.c | 121 ++++-- > drivers/auxdisplay/hd44780_common.c | 370 +++++++++++++++++ > drivers/auxdisplay/hd44780_common.h | 32 ++ > drivers/auxdisplay/panel.c | 178 ++++----- > 8 files changed, 851 insertions(+), 567 deletions(-) Thanks Lars, CC'ing Geert since he wrote a large portion of this, as well as Andy. From a cursory look (sorry, not doing it inline since it is a pain to edit in this UI given the size...): * panel.c doesn't compile since lcd_backlight's return type did not get updated, which makes me uneasy. I am not sure why you changed the return type anyway, since callers ignore it and callees always return 0. * Declared and then immediately defined hd44780_common in the header...? * Some things (e.g. the addition of enums like charlcd_onoff) seem like could have been done other patches (since they are not really related to the reorganization). * From checkpatch.pl: DOS line endings and trailing whitespace I am not capable of testing this, so extra testing by anyone who has the different hardware affected around is very welcome. Cheers, Miguel