Received: by 10.223.185.116 with SMTP id b49csp3644898wrg; Tue, 13 Feb 2018 05:37:57 -0800 (PST) X-Google-Smtp-Source: AH8x225KaNOsWgHSxnisNkUlU61i2g+lUa3e12JxaQpILLqlGi/Fu4scFxu8ol3dZAE4XSqQP4X3 X-Received: by 2002:a17:902:bcc1:: with SMTP id o1-v6mr1151301pls.78.1518529077538; Tue, 13 Feb 2018 05:37:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518529077; cv=none; d=google.com; s=arc-20160816; b=tAcUwGDUcY5x9yM7KbjvtQPrp0uASkuWCCCGPiMvUiwp7bScFS69XvBk7Jbg9lVx2f Fg8PaZxaxyxjgZlYZ7WEa7rIH6YqC4ob03nCrbpjSTKkrR2DBN1VLhCqDw+Uj7u9MX3D mLghWAFM3qUlLYK3HaMYhTFo9tNA8F4Pknivn4xuKcQV9spi6x4v/bJgaC2ArvyZFiyz nizDz7GhP/JYOBvmAJM39ubMkwhx3zLETECLX7/wKsAgHi8mgCpecjcwIwlM1wQbRyGB nd4i/WrSpepjKlghwjU8ikutCzzFm+IIY6mSDcQ2+PUH3A9Qa2AEPZwSXAVeCMaDx14c E/wQ== 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=6NiG8mFKBzsiAnmyd3AAUviUCmoVaZtyot26BArV+ps=; b=d/fmUG1qU3yfoz++JWozKUBu+D/l/DOhFOw7H2qSNtgthqfSrCrL/3jrcY3fDbsP8i O7SfP9MTP+C3K4+kjnFDEvLZRprDOeCQ+mxyl4t+QS/6CupjDkMS1ATKcFtFTmJzxJrr yicEte5Nw/x+p59p72J92qAvVCvdoPhpqcHL7JzHV2tsd1IruckcEN2xPe2rAXbBJCXX Y5c6GA++ByzhQ0ZLS8tSHtpEwDX5XvI3esjYse4panMdCTr3Q9/DEjKq5tFYdIYO0VIX NkdZRziYKTi/OsYCxDIlSJgKwHcEZdSBLoYo78lA/eC86geDCj/fq3bpZ/eQ+YAKylnf 3Aew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Qj0TGDiM; 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 h1-v6si7423899pld.637.2018.02.13.05.37.42; Tue, 13 Feb 2018 05:37:57 -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=Qj0TGDiM; 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 S964865AbeBMNgs (ORCPT + 99 others); Tue, 13 Feb 2018 08:36:48 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:37635 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964775AbeBMNgq (ORCPT ); Tue, 13 Feb 2018 08:36:46 -0500 Received: by mail-qt0-f193.google.com with SMTP id d26so2020995qtj.4 for ; Tue, 13 Feb 2018 05:36:46 -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=6NiG8mFKBzsiAnmyd3AAUviUCmoVaZtyot26BArV+ps=; b=Qj0TGDiM/btt3+5Nbe8Ew6HrheTqb7AnxR1T4qkoReamyJuCssvtBemB4hPEvpqlel Dg0YGvbRVVsunKVoQwJkTLMB0cIp4jwTievZAiEi3Us0+aLwOOr2ChKYG5rzKdMwYgzr P8Q6Omcj2ijXN04QLP7LoeVV0BRvZhjGpvusmOHgOQTIc+ypUCME0D87RzVaFhHONxqf Vpko7y7G6OG++pusy1Q3MzJgFirKi5blICSJxfAt8S+mbesGdqasu/xroQ/Tw3Gh3NRp bBL4OxSpnXhyFLolwU7UQx/Jtd7apvSlpC3lAsgzS91qs+nWEGccK/eoK7ewaq+urvLk mKNA== 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=6NiG8mFKBzsiAnmyd3AAUviUCmoVaZtyot26BArV+ps=; b=JSReNMbiFxu7YQMEkSyR/N5Yt6fkbGP8OmAHRxzo2uMM6zOhHCsPnWE6MqeVOXGL4X o9WT5hAUJz9Ng+COWRljfT1q+hDXq+YzP0cJ5Uw/bsbk7IAK/FWY359IAAyfDPBVnNYZ qYAjncHghU/7n3t5EZFWWK7At4GnC07EEMa+a30cduOQ1eTXaCIxcoz6L5BhoznzqT62 tPXLNejmuktQ8JagP1logP3L3UcAQhg9InAi/IEEdQ8cKCAV77ftJ+XT5OyrTBuKanNP 1dtDABd1yO3fIqI1U/89JEeg+Kn+Q1wfPPjcCfkTQqFMbaZSfFiEDC3X1PInSCSHimsQ 7X3Q== X-Gm-Message-State: APf1xPCIRcpeJty/vSP8+oje0MnY6XI3fWOPHR3S6BYtXXLVqtgtOg+V 9nm2FNAA0pGv7oQ5jhq0/yuWb/d+k6pU5cCWs1JxLQ== X-Received: by 10.200.8.173 with SMTP id v42mr1843197qth.162.1518529006062; Tue, 13 Feb 2018 05:36:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.195.82 with HTTP; Tue, 13 Feb 2018 05:36:45 -0800 (PST) In-Reply-To: References: <20180209235012.4993-1-rabel@robertabel.eu> <20180209235012.4993-2-rabel@robertabel.eu> <20180210092003.GA20377@1wt.eu> From: Andy Shevchenko Date: Tue, 13 Feb 2018 15:36:45 +0200 Message-ID: Subject: Re: [PATCH 1/3] auxdisplay: charlcd: fix hex literal ranges for graphics command To: Miguel Ojeda Cc: Willy Tarreau , Geert Uytterhoeven , linux-kernel , Robert Abel 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 11:41 AM, Miguel Ojeda wrote: > On Sat, Feb 10, 2018 at 10:20 AM, Willy Tarreau wrote: >> On Sat, Feb 10, 2018 at 09:58:44AM +0100, Miguel Ojeda wrote: >>> On Sat, Feb 10, 2018 at 12:50 AM, Robert Abel wrote: >>> > shift ^= 4; >>> > if (*esc >= '0' && *esc <= '9') { >>> > value |= (*esc - '0') << shift; >>> > - } else if (*esc >= 'A' && *esc <= 'Z') { >>> > + } else if (*esc >= 'A' && *esc <= 'F') { >>> > value |= (*esc - 'A' + 10) << shift; >>> > - } else if (*esc >= 'a' && *esc <= 'z') { >>> > + } else if (*esc >= 'a' && *esc <= 'f') { >>> >>> Willy, Geert: this seems obvious, but do you know if the broader range >>> was intended for some reason? >> >> No, I think it was simply a brain fart from me 14 years ago, as I can >> find it as well in the original 0.9.0 patch for kernel 2.4! I understand that we have a huge and hopefully nice library in the kernel, but the question still the same, what prevents a developer or maintainer to look at it from time to time? For, I dare to say, ages we have hex_to_bin() and hex2bin(). Can we use it? -- With Best Regards, Andy Shevchenko