Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp694182ybl; Fri, 30 Aug 2019 05:55:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyO/rcuWTqBkmTXXycta221ghNQZllemQDdkXvqYInf7FqXrMbGKlWBwoUXOQaonLh6WCkw X-Received: by 2002:a17:902:6843:: with SMTP id f3mr15060621pln.97.1567169722691; Fri, 30 Aug 2019 05:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169722; cv=none; d=google.com; s=arc-20160816; b=iir2KgfIrVhYxW2El66i2uI7INPCe42d3G84S9vH/X+xyqWx36NlQs9nr6HRlM5MOY ZVqVWmBa1a5CMhA+B+0OFODoh9LWiov/RiFNvuVA1v2O5Ag3GRi+V5SRjBQH16x7JH8C yfRS+UUT1An8a9NqtEhC2tkM1keTQToIA99dFhSwR8EDjcAN2058NDW6dv/ghhmICWof N+cBN3CBcJyGbsXMcFs5tfyx+lVSDDUKWwRdTbzrTdXlUgOqMvMTvRZMVcjZGz0UUhVF hwj1TtlKezXhGwAQy7ttSvbkWE8lifDBMD0eCq/rnJcQkriC1PyZ7jqT9Lc45fk0RgJY km8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Qh67kMmqKFFZ+7XR5oAgZdLoDao15rA56Qv5bKkQvXY=; b=VHaPx2l6ihF7mkLPZozLOjb4sVlwDeJc59S63DW9jh7mps8yDOGTPtwL1bEL2jmyEK 56ra2Kac2Lrjzkw4EuBfWaNBISezoI7lOJG0ncWGU39d1reEkwmNmMDG/CYlmr2mNEMa 2sBGafhdQ2/mkTD3vZ4E8uT2yVfWtGZNPqQINZtp9CVKDEJ0LetiIAOCL9gDROIVX5Ys vpKqHISrxbsph++IVUUrfKJSCqCBW5h02z2r025HZY//IkK0Cjp5T8fIiQbpfNy4SeK9 4D4M10hqgt5A+tT1UUXcDO5w1mNIxYsoZF7gcx1MXL2TqzgZ3ak6kDQhdcS/uV5/YF9X WqYg== 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 h1si4911911pjb.40.2019.08.30.05.55.06; Fri, 30 Aug 2019 05:55:22 -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 S1728155AbfH3Mxu (ORCPT + 99 others); Fri, 30 Aug 2019 08:53:50 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:39195 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbfH3Mxt (ORCPT ); Fri, 30 Aug 2019 08:53:49 -0400 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id B4278200005; Fri, 30 Aug 2019 12:53:45 +0000 (UTC) Date: Fri, 30 Aug 2019 14:53:38 +0200 From: Alexandre Belloni To: Wolfram Sang Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Chanwoo Choi , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz , Alessandro Zummo , linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org Subject: Re: [PATCH 1/2] rtc: max77686: convert to devm_i2c_new_dummy_device() Message-ID: <20190830125338.GP21922@piout.net> References: <20190820154239.8230-1-wsa+renesas@sang-engineering.com> <20190820154239.8230-2-wsa+renesas@sang-engineering.com> <20190829205752.GL21922@piout.net> <20190830124554.GB2870@ninjato> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190830124554.GB2870@ninjato> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/08/2019 14:45:54+0200, Wolfram Sang wrote: > On Thu, Aug 29, 2019 at 10:57:52PM +0200, Alexandre Belloni wrote: > > On 20/08/2019 17:42:37+0200, Wolfram Sang wrote: > > > I was about to simplify the call to i2c_unregister_device() when I > > > realized that converting to devm_i2c_new_dummy_device() will simplify > > > the driver a lot. So I took this approach. > > > > > > Signed-off-by: Wolfram Sang > > > --- > > > Build tested only, buildbot is happy, too. > > > > > > Please apply to your tree. > > > > > > > I'm confused because I already applied: > > https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit/?h=rtc-next&id=7150710f3084de8d35ce3221eeae2caee8813f92 > > The above was a mass conversion to i2c_new_dummy_device() to make sure > all in-kernel users use the API returning an ERRPTR. Mass conversion to > the devm_ variant of the same function was too troublesome. > > With another series, I wanted to remove superfluous error checking of > i2c_unregister_device() because it is NULL-ptr safe, like here: > > > > - if (info->rtc) > > > - i2c_unregister_device(info->rtc); > > But for these two RTC drivers, I figured moving to devm_* is way easier > than fixing up the mass conversion result from coccinelle. > Ok so should I drop the previous patches and apply those instead? -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com