Received: by 10.223.185.116 with SMTP id b49csp3905931wrg; Mon, 26 Feb 2018 08:01:43 -0800 (PST) X-Google-Smtp-Source: AH8x224g6XDxPK/WciNpH5RierO1xfBjfuk+Ne/rP/1qdCVR7HKkChgBMWHVnioSoGE4ydqccUUh X-Received: by 10.99.158.17 with SMTP id s17mr8887987pgd.64.1519660903173; Mon, 26 Feb 2018 08:01:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519660903; cv=none; d=google.com; s=arc-20160816; b=KQNgbhhWiDhf/NvWg0FOcoj0hhp/ky7ILAmZWUg1dm87nJZSZ3fybiIem8WDvSZgdw mQZI/7H58wmny3azZ2iB6Gw7cflTm7/n6V4xnCqwHMrQdGx1VzV12w4EZ+rWvA/OUJJh FbzXtJ+q/N6z5/QiMZor+WcR72zwWGmcg2iFVVKxrAmwMcNQgO/LSq8JqbVs5ZuvgDuz Wlux3l+boqfa6nzZlKvf+nUnHiG6J+UQUz8VQakdnpCduUDPwV4EfpG1pLV+O55c+iMH WbRtn4eaf9emSG3AjVzixCxk+CBPDuvqjBCu9UocXd9v6L42UlBeoMhm+ZUqVvIlHQP3 FqDA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Ncpovdu/bb8SINlM2E5/YWqnYiuJoGF3OvHP4n4BnkY=; b=tEyLYSgqM62OGbPvIIN090kIgg4ExGUmkteNP4b92ln/yX/Va40T+OQgL7cAOtBdw2 mpksE5k1p+MRDk7GSGp9IvrrECiV82QhF81s+0LuhgWqQkQrR783b54imAONoPVoTEMM h0oXdsMfpt+cxJIDIkcouCHwWLUXMQZgaDnGu69Pk62b/KmZiMjIgHZnC/TOmXB/tDYo i91dxiTK2HKcPkmbDoRxvtxXMzSaYzsNzFzzrKR9LTNRYUXj/loEafSTIdejMziB2nGa 1kknPEnAwvOEAArGh4f/JwwqkxvOccFsZOm4bXrBptMYqSxeBfn0SM0CZmWcxE7i7L7G Joaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jvknjgA3; 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 o17si5631164pge.371.2018.02.26.08.01.18; Mon, 26 Feb 2018 08:01:42 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jvknjgA3; 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 S1752121AbeBZQAB (ORCPT + 99 others); Mon, 26 Feb 2018 11:00:01 -0500 Received: from mail-qt0-f196.google.com ([209.85.216.196]:34971 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbeBZQAA (ORCPT ); Mon, 26 Feb 2018 11:00:00 -0500 Received: by mail-qt0-f196.google.com with SMTP id z14so2199839qti.2 for ; Mon, 26 Feb 2018 07:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Ncpovdu/bb8SINlM2E5/YWqnYiuJoGF3OvHP4n4BnkY=; b=jvknjgA36c+ngliN8XYFM1+F00yzDoRsAAg/M/OdsPpK+/H55/JrllZM1RqJmHGasr 3ZcCsyFHfmcm2I4/5lAfpM2gPk27eKYQzNj1TltUChgmDrpAze/fLSGqMP+VuJ2YLq0V ri15xRBPmYy+Y/cXoPqB04XsS9+3lkje/C29684OoHBVhvWzvzd/bGtagNWHGzl3KIRD iN6DC+pPaR9DmO/YuvsebEMSYDIjLDiSGkihnUuPodEd+vpEmWeQ3+xGtKPx4vDQFdMx 7QN8ZiZIOjZ/AumPa43UAe/dFm4NqZnMnkKKc5lVRSqRu+/dgRyQvSULRJ0KpymD6LDS YFbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Ncpovdu/bb8SINlM2E5/YWqnYiuJoGF3OvHP4n4BnkY=; b=MnuHDXoq2/q0hvIcqXFBdoKU9MhsXwqm8iutMTtQJ1NDvyjEiC+GBtaiFEluIaNcMY vkhpM9vjFzzzLc4Y0lXFO014iq2h2DR2uijXXADde5Us030wEm+68N5wvAxrUDb6Qn9x nU9KlVizMk30QGAIf5UST2i0XpqisFlxarylpjUx15er57epGe74+sNNrptk1bM4vJKe +kAjGY+ECfRJ0CLQjVO6wly4bZZu/BsaoBARuM/dQxa9BRRzuIVTHMAWpV0+AxOLZ7UP JhVR1c7EIa+kltD3nH5pKy4UWhQx9OPunn6k9pMSDL3etngKvE09pyXNbgpRXpVtUNuc W5sg== X-Gm-Message-State: APf1xPAgSMPYtduhW8GAM4tH5njAspdu4EdouK/qcUTs97apayxgs7Wv LhSeorxZKNyUNARQ8ApM/uYCMzZ8Pt+FOWetuw8= X-Received: by 10.237.36.170 with SMTP id t39mr18812696qtc.136.1519660799350; Mon, 26 Feb 2018 07:59:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.52.247 with HTTP; Mon, 26 Feb 2018 07:59:38 -0800 (PST) In-Reply-To: <20180225235432.31209-3-rabel@robertabel.eu> References: <9ec3c54c-f8fe-22d7-783e-8cf9862405bb@robertabel.eu> <20180225235432.31209-1-rabel@robertabel.eu> <20180225235432.31209-2-rabel@robertabel.eu> <20180225235432.31209-3-rabel@robertabel.eu> From: Miguel Ojeda Date: Mon, 26 Feb 2018 16:59:38 +0100 Message-ID: Subject: Re: [PATCH 2/4] auxdisplay: charlcd: name x/y address struct To: Robert Abel Cc: linux-kernel , Willy Tarreau , 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 Mon, Feb 26, 2018 at 12:54 AM, Robert Abel wrote: > Signed-off-by: Robert Abel > --- > drivers/auxdisplay/charlcd.c | 12 +++++++----- > 1 file changed, 7 insertions(+), 5 deletions(-) > > diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c > index e3b2fd15c5a3..a3d364e6c666 100644 > --- a/drivers/auxdisplay/charlcd.c > +++ b/drivers/auxdisplay/charlcd.c > @@ -67,6 +67,11 @@ > #define LCD_ESCAPE_LEN 24 /* Max chars for LCD escape command */ > #define LCD_ESCAPE_CHAR 27 /* Use char 27 for escape command */ > > +struct charlcd_priv_addr { > + unsigned long int x; > + unsigned long int y; > +}; > + > struct charlcd_priv { > struct charlcd lcd; > > @@ -80,12 +85,9 @@ struct charlcd_priv { > unsigned long int flags; > > /* Contains the LCD X and Y offset */ > - struct { > - unsigned long int x; > - unsigned long int y; > - } addr; > + struct charlcd_priv_addr addr; Since this is a very small change and you use it in the 3rd patch, I think it is clearer to have it there. > > - /* Current escape sequence and it's length or -1 if outside */ > + /* Current escape sequence and its length or -1 if outside */ While this could be left in its own patch ("fix typo..."). Thanks! Miguel > struct { > char buf[LCD_ESCAPE_LEN + 1]; > int len; > -- > 2.11.0 >