Received: by 10.223.185.116 with SMTP id b49csp3170894wrg; Sun, 25 Feb 2018 15:56:39 -0800 (PST) X-Google-Smtp-Source: AH8x226cdP1ZLXBM35cApylDB8MplqECSWdQi6Rw8h5HCriF/f1GoQjasvYAwUdmEbIz2n48wKMJ X-Received: by 2002:a17:902:33c2:: with SMTP id b60-v6mr8962046plc.222.1519602999220; Sun, 25 Feb 2018 15:56:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519602999; cv=none; d=google.com; s=arc-20160816; b=s+VPkBw3oPp7MGXrFPM3K4ZlZo8vhmR0DqDwTrfcf9Fu12y2AIwlFXWUx0W8YKAVwg z7ob0B+XzpC2G03oJZTuNVRjnSjRUIBYo2+4HIXR44OgWVQZyWuH0ev3ETraPf15C+Tv cvNI7rsMLCGSo+4EETjMEgwppvJrdXzH/pGqYjDXSZcfI+EV0vOykF2D+U5WaIvGw5Aq IG+zQznHxk4fD+yNnW2SSi8k/LViD6mSoY2Glz2vbK8caeG7v6AnECKcRs5OZFmVditg JcJQxaILbpbP6aONr/rZRnuiCFOB/iOshNk+Lq5piHNkEMZwin3HfTB+X5sWP//aDHal U6ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=Uv50J5btKAGxWp+/wgnyW6HjvaVDg8o3qW9qjTaCdrs=; b=aS813osDmFWutldxk/rUqTF0sWQuf5dVjrNheyyAaK2k/ZW0p5owXV7mApqHNEVzJr pA4EE0v7NOc1r3mf6s0L+ZmVnEPgEKu29SlLtKRZgcwLS7wXU3USL7WpvGpbnlfT5oy2 EYaVm4ua9r7zig+Dgk4+q2FUuOmGj2KC+QBY/YUaTJNvf4xT4G7XDCrtOZFGdARpBLON I3QiBLSf3uR1G6kjHHRe0ruv8k/M+UBJvCT0M9lvsB0u+y3EN9RPs2CNUaeLJHIZv506 DRtXfMDz96pwjVmiru8I3+X+ibGzLCZTZtnGo3t551HaH5A2P5yRs7E2BpTzs0AatAIZ tLgA== 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 a90-v6si5772788plc.329.2018.02.25.15.56.25; Sun, 25 Feb 2018 15:56:39 -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 S1752012AbeBYXy5 (ORCPT + 99 others); Sun, 25 Feb 2018 18:54:57 -0500 Received: from mxf98a.netcup.net ([46.38.249.138]:57542 "EHLO mxf98a.netcup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751921AbeBYXyv (ORCPT ); Sun, 25 Feb 2018 18:54:51 -0500 Received: from buildbert.robertabel.eu (x4d076501.dyn.telefonica.de [77.7.101.1]) by mxf98a.netcup.net (Postfix) with ESMTPSA id BB8E51409B7; Mon, 26 Feb 2018 00:54:49 +0100 (CET) Authentication-Results: mxf98a; spf=pass (sender IP is 77.7.101.1) smtp.mailfrom=rabel@robertabel.eu smtp.helo=buildbert.robertabel.eu Received-SPF: pass (mxf98a: connection is authenticated) From: Robert Abel To: linux-kernel Cc: Robert Abel , Miguel Ojeda , Willy Tarreau , Geert Uytterhoeven , Andy Shevchenko Subject: [PATCH 2/4] auxdisplay: charlcd: name x/y address struct Date: Mon, 26 Feb 2018 00:54:30 +0100 Message-Id: <20180225235432.31209-3-rabel@robertabel.eu> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180225235432.31209-2-rabel@robertabel.eu> References: <9ec3c54c-f8fe-22d7-783e-8cf9862405bb@robertabel.eu> <20180225235432.31209-1-rabel@robertabel.eu> <20180225235432.31209-2-rabel@robertabel.eu> X-PPP-Message-ID: <20180225235449.31404.53783@mxf98a.netcup.net> X-PPP-Vhost: robertabel.eu Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; - /* Current escape sequence and it's length or -1 if outside */ + /* Current escape sequence and its length or -1 if outside */ struct { char buf[LCD_ESCAPE_LEN + 1]; int len; -- 2.11.0