Received: by 10.223.185.116 with SMTP id b49csp4280072wrg; Mon, 26 Feb 2018 14:40:15 -0800 (PST) X-Google-Smtp-Source: AH8x227TmD5Jh3KnBxt0fC0MvJfT5R8GeCbI3l6uqN6TPD8PIIZ67/pMojvq3TqfhzIT30BjZ0ww X-Received: by 10.167.129.67 with SMTP id d3mr12046040pfn.108.1519684815013; Mon, 26 Feb 2018 14:40:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519684814; cv=none; d=google.com; s=arc-20160816; b=EitKmbhqRqoeeUq4TNrHD6RzfGC4mv7Sx1E4nMjxYZ5cSgVzzsbe0HW4AuaVUsYgQr op27vR7CQWRokyAxu4g05DUF7LUC/lHuy5Lii+OZUUiZ+4I9dX1LVZ+tNVQgH07bzAXA icKxJjcBy5zttuJ6R+KTWYPFetjOBXjbEPwBqok8v8NSZaO+S47QqjlMOWpaZhUyP9mH KT3O/gQWlLvqX9SMJnqDhPFdcPzrIAvNRDonjKpckE0nQjztt6jSg1LeqQUQA4fk1C87 80olGuOSZ+juPXclNnt18wLUDIf0ghQCTbq0W0dWEoptA3MsMOWyueZ8SP/CcJ50d0xD thcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=Rv2VytiK2M2E5pGithkpmwyBDaz1LyZ7roQL0INUwLs=; b=yBIlpL5men+Z+fwSULlCKUeoouzkQxLhMizsFeF91CZL5C80p12/DA9YEprwJUcMv6 ojqHfGZArYdzyf0ypOfkxe4ixK2o24PuxBbN1GRpcVzgoiU2TqhwxPR6KxDLaVWTI5Sd kPpgx9anmhk06BFkH5eJkHZ4+DkCKj95p/r/TWLnd/ULKyqOJXDuVzQlcZDcJXw61zJI 9G1+C9ar170UGp+zjOy486UQJo319m2EZabziBq4kZSqEtHb2iDcAfgE9ssyvWoERGCd JB6JEbAzF00H7bXbTEw3BHIfjqjBviKnuajIL4A3kT1WgPPHMh4zWay01bmSIo4hCfBj RWJw== 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 a26si7482857pfj.267.2018.02.26.14.39.58; Mon, 26 Feb 2018 14:40:14 -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 S1751812AbeBZWi7 (ORCPT + 99 others); Mon, 26 Feb 2018 17:38:59 -0500 Received: from mxf98a.netcup.net ([46.38.249.138]:58344 "EHLO mxf98a.netcup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751587AbeBZWi5 (ORCPT ); Mon, 26 Feb 2018 17:38:57 -0500 Received: from [192.168.178.21] (x4d071a18.dyn.telefonica.de [77.7.26.24]) by mxf98a.netcup.net (Postfix) with ESMTPSA id 1F278140805; Mon, 26 Feb 2018 23:38:56 +0100 (CET) Authentication-Results: mxf98a; spf=pass (sender IP is 77.7.26.24) smtp.mailfrom=rabel@robertabel.eu smtp.helo=[192.168.178.21] Received-SPF: pass (mxf98a: connection is authenticated) Subject: Re: [PATCH 3/4] auxdisplay: charlcd: fix x/y address commands To: Andy Shevchenko Cc: linux-kernel , Miguel Ojeda , Willy Tarreau , Geert Uytterhoeven 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> <20180225235432.31209-4-rabel@robertabel.eu> From: Robert Abel Message-ID: <48023798-595d-2a09-6f0c-2834ebefdd68@robertabel.eu> Date: Mon, 26 Feb 2018 23:38:54 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 8bit X-PPP-Message-ID: <20180226223856.9684.27533@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 Hi Andy, Hi Miguel, On 26 Feb 2018 12:44, Andy Shevchenko wrote: > Can we avoid yoda style of programming? On 26 Feb 2018 17:49, Miguel Ojeda wrote: > Please do not change the style of the code w.r.t to the rest of the > file, which writes tests with the non-lvalue on the right-hand side > and do not compare against '\0'. Same for the rest. I am actually a fan of yoda-style programming, although its value is diminished with modern IDEs, which we all use, right? On 26 Feb 2018 17:54, Miguel Ojeda wrote: > On Mon, Feb 26, 2018 at 12:44 PM, Andy Shevchenko >> Perhaps instead of dancing around kstrtox() better to switch to >> simple_strtoul() ? > > It seems deprecated: > > /* Obsolete, do not use. Use kstrto instead */ > extern unsigned long simple_strtoul(const char *,char **,unsigned int); I thought the whole point was that simple_strtoul is deprecated and on the kill list? Isn't that kind of against the whole argument of re-inventing the wheel? If using simple_strtoul is an option, it might be best to bring it back and not touch the buffer at all. Regards, Robert