Received: by 10.223.185.116 with SMTP id b49csp35836wrg; Sat, 10 Feb 2018 01:44:52 -0800 (PST) X-Google-Smtp-Source: AH8x224BauYXBtRdO3gjWruW0K2+NT1ff4urGKK7AYhrlIdSJHW7oXKVJzJv1CT96bINseBX40Pr X-Received: by 10.98.204.132 with SMTP id j4mr5613526pfk.161.1518255892061; Sat, 10 Feb 2018 01:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518255892; cv=none; d=google.com; s=arc-20160816; b=u9hZkCqyxMOxwKhGyZOp0wjBWzgpSOABWTGlBEOeTXDztp19kqDffT8nEkhcx24IxX pKF/cuzj5rIPBdVLPcJ4x1tiYsfcfcNX5iPmce2C6ox6tzU99WhsNCG2ObfeKvdAElZL K1mr9W0x11s4UC361A2tWDKCWB1G8FCV0hLpLrk7InaARDvnp/U0U0xHkIuxB0HYoYqQ tYc9FfWuQ1zFk0j6PN3oILf5eLJ0sDuXu5X2Jt4SeEnnqyPLc++BciRzxVY2FeVLEw1l pXfnoVFMGBQTpY5/snH3+B7vTGuOhy03QeV8ahA6QAi8z2UbYzX4WKtacvZ8zyDXwOaR QjVA== 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=Y7xrm/S+FrecE+rluRtMRucjoLolgSLy3UoNDMzSGgE=; b=vpLnsZTDC6kTwpkHfORShNT/rczRyG17T/S30NLflR7mZaNXQnW0oq05PwKhmMLAbM rGobBG7M0HP9NhquCk6cWF0Bv9bbFwCf3N2xa9Ao1K/Ckf/IzWLR+38IvsRhgfVMdvMx jsjDyCrzpgnfhtk7BVgob1Fwez4w6/4lcHMr2h8caTfYjLlWp5qmvcPknDwC44NE8YXO YOubgDATivdRyJgMYOtP8JCDGXcy4K3e54KWdy1JYtPWyoz+9SpkBmP3dp9hEyY1BqcY awOtYJeSuJs4Oeh6uFbjruuqdcjRWNDvYIwVYyAWxFzQTZ0w5at+odZBMh8xy45/fygK PZFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MO7YX4+V; 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 31-v6si2828583plj.176.2018.02.10.01.44.38; Sat, 10 Feb 2018 01:44:52 -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=MO7YX4+V; 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 S1751550AbeBJJnv (ORCPT + 99 others); Sat, 10 Feb 2018 04:43:51 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34741 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbeBJJnu (ORCPT ); Sat, 10 Feb 2018 04:43:50 -0500 Received: by mail-qt0-f193.google.com with SMTP id d14so13586089qtg.1 for ; Sat, 10 Feb 2018 01:43:50 -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=Y7xrm/S+FrecE+rluRtMRucjoLolgSLy3UoNDMzSGgE=; b=MO7YX4+VTn3v6WpXvKMOpaTtWy80OBNtFP/PzlRVV0bgkZoZCYv+8F2r8T9cR0RyXB k73Ka0EdCjETzK4CxNzhBvq+4QUyUKDqoAIrQ7GVZEN3ifZk9iKezK2lDJzxdB8ZGAk7 /uyu2VnHzVxwQ6lhwWQ3Bl8q8ZD+ju1zGRT8O2B6miE+jVw7upe8LJHeqBEYSgBj/InD MBVtWnz9A105netRLHB4H93CvNu4C0KCty6MNhBKFGpMKRshkpCEkcgyvMywApCZQvM/ UGcTNSCSGfqMKQxC+KI3F3g1q1ispTMCMBsh21iNdFXuXPqRZdKlbJKTus4uwgVXJWns rWCA== 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=Y7xrm/S+FrecE+rluRtMRucjoLolgSLy3UoNDMzSGgE=; b=jX11iDCK/ANznkxbr349YgEZYEKzDO+1NdYVUbL5dgAgDPN1YTROAcQd90LAR+LFXK M69znKKGTpXBPGa7mkNbZkUbzmXX3xLbaOwtHlp2lEHNQifY2UEa00StsqRNDQodVZ9e H39BZoAAoflziCGjv+UTVIcHaiu0hZJ+aVzUaUig1oTif2M5Q7z89gTp5fAbGdomu/1n wHiStJhMdKltDtwoP18InJj7pyyylYI9G2bjHXrSO9T00G9g1wNFrDpDd5CxbVTtQNYO Yvi5dttUkQfz86h23tyDVVA+A8S96k4d4RO0fEN2EEd9LzcifHCOpf8TF2Xcx1Ok9M8I k9Iw== X-Gm-Message-State: APf1xPCol75GvNciVxnI3QJauB/3NiqKBqyW8QX2ffbGvW/SjhEHFsb7 tjAmi03mbQJHRGViyJQR+9UUr82v2PYVxMKdmtDvGg== X-Received: by 10.237.43.70 with SMTP id p64mr9109461qtd.208.1518255829886; Sat, 10 Feb 2018 01:43:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.26.7 with HTTP; Sat, 10 Feb 2018 01:43:49 -0800 (PST) In-Reply-To: <20180209235012.4993-4-rabel@robertabel.eu> References: <20180209235012.4993-1-rabel@robertabel.eu> <20180209235012.4993-2-rabel@robertabel.eu> <20180209235012.4993-3-rabel@robertabel.eu> <20180209235012.4993-4-rabel@robertabel.eu> From: Miguel Ojeda Date: Sat, 10 Feb 2018 10:43:49 +0100 Message-ID: Subject: Re: [PATCH 3/3] auxdisplay: charlcd: replace octal literal with form-feed escape sequence To: Robert Abel Cc: linux-kernel 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 Sat, Feb 10, 2018 at 12:50 AM, Robert Abel wrote: > There is no need to resort to octal escape sequence for the form feed character when an established escape sequence exists. > > Signed-off-by: Robert Abel > --- > drivers/auxdisplay/charlcd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/auxdisplay/charlcd.c b/drivers/auxdisplay/charlcd.c > index 92549c8344a4..a3486db03d81 100644 > --- a/drivers/auxdisplay/charlcd.c > +++ b/drivers/auxdisplay/charlcd.c > @@ -555,7 +555,7 @@ static void charlcd_write_char(struct charlcd *lcd, char c) > /* back one char again */ > lcd->ops->write_cmd(lcd, LCD_CMD_SHIFT); > break; > - case '\014': > + case '\f': Normally I wouldn't bother with this kind of change, but since the other switch cases all use escape sequences, this improves consistency, so agreed. Trivial. Compile-tested. Signed-off-by: Miguel Ojeda > /* quickly clear the display */ > charlcd_clear_fast(lcd); > break; > -- > 2.11.0 >