Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp495977ybb; Fri, 10 Apr 2020 04:23:42 -0700 (PDT) X-Google-Smtp-Source: APiQypJiVIIc/hrKSv1smfWESHb2vzUJs+knwUFAVYdtyj2i1DfeH3d4Vi0RRDpuDSxdF7/eP6SH X-Received: by 2002:a05:620a:1451:: with SMTP id i17mr3355117qkl.116.1586517822031; Fri, 10 Apr 2020 04:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586517822; cv=none; d=google.com; s=arc-20160816; b=Rsl7zAZ5WR4GovDdr9+dJArnH5YfxZ7Q6X6Q0i+oFQhimJWGi6C6lmsHkvnfzbLi3q ykAtNDKh1szYzq02BYf7f+fJA62g3kIDgHmRJm/35tEAnnIreegUp8ZBQhlTAcde2nR9 rmR31hC4k6JMKKdr/tc6468XoVf26P6do1XhNZerOg+C3nZBZDbxH/hrG102BRd7DFOO 6TQikmusdJenhDFFGhl8c2KRFHq7nrFNt96AxHgCfzkblCFrpPKyefB4DB8+jK7Hy83s 92hr481JAaoGI0W/QBptbITWYnkE3cN0G/3NDmiaylJSmwr+BLyX8YjJEDSYV/7Q4Oxg x93g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Use/k/XdEX4AeHSKm8vJuH492saVdENE0x+ikLo3cgI=; b=bGXMEiH1LDzNGbpsBexqIW29qPjvPTPaC/3OY3D/oLLyljFzngye8Zt1NqXU1WsQwn qHksg8G7F9+CxUaNCxPIB0DLXewIxCnL4I9O/8zlhPPwsjJOgAoOO10mknvMQCoG38zv i20jJMeJ2blpylSZeNcJDIt4ChrvyS5bpU+Mzo/HTHu896fVIxrD9iFpxVlTxWJELIKC 8ZbkGQJisyUPXL78gGz6F8W3gvDWN+2cDQNuXaZQNGHK+RdNcez9texb9sNX4OPZfxko K7UyjPgUWy9fHi3eK7i3357IiG8fYr2qGsZ/xGhXr+frEE01irlmODaOue5NoFpzUIn4 Ud5g== 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 e9si1185246qka.174.2020.04.10.04.23.26; Fri, 10 Apr 2020 04:23:42 -0700 (PDT) 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 S1726080AbgDJLWj (ORCPT + 99 others); Fri, 10 Apr 2020 07:22:39 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:38793 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725930AbgDJLWj (ORCPT ); Fri, 10 Apr 2020 07:22:39 -0400 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 5B594240010; Fri, 10 Apr 2020 11:22:36 +0000 (UTC) Date: Fri, 10 Apr 2020 13:22:36 +0200 From: Alexandre Belloni To: Andy Shevchenko Cc: Aishwarya R , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Nicolas Ferre , Ludovic Desroches , Thomas Gleixner , Allison Randal , Kefeng Wang , Stephen Boyd , linux-iio , linux-arm Mailing List , Linux Kernel Mailing List Subject: Re: [PATCH] iio: adc: at91-adc: Use devm_platform_ioremap_resource Message-ID: <20200410112236.GX3628@piout.net> References: <20200409151125.32677-1-aishwaryarj100@gmail.com> <20200409155936.GV3628@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2020 13:55:26+0300, Andy Shevchenko wrote: > On Thu, Apr 9, 2020 at 7:00 PM Alexandre Belloni > wrote: > > On 09/04/2020 20:41:23+0530, Aishwarya R wrote: > > > Use the helper function that wraps the calls to > > > platform_get_resource() and devm_ioremap_resource() > > > together. > > > Please elaborate the actual value of doing that. > > Please, elaborate actual value of not doing that. > > Yes, I know that you are p* off of these changes, but why you not > going further and forbid all clean ups we are doing in the code? > > To the point. Above change is reducing code base and showing the new > comers modern APIs to use. > The value of doing it is to reduce the code size by 16 bytes. The same people doing that will actively ruin that by adding error string for error that will never ever happen. Also, the commit message is definitively lacking. A good commit message would say that the patch has been generated using coccinelle, that no testing has been done and that no thought has been given. It would definitively make sense to send one patch per subsystem instead of having 475 different patches each changing only one location. The whole "let's let newcomers fix trivial bugs" thing is definitively not working and it is not leading to an increase of the number of useful reviewers and contributors -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com