Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp687602ybl; Fri, 30 Aug 2019 05:48:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwuMhZlYsv728Z57+CZZTWHd857ku1C9mqnyxsPe8xTB77g80kslxl7kI7Ehk8skQ31JEi7 X-Received: by 2002:aa7:8a83:: with SMTP id a3mr17855136pfc.115.1567169319289; Fri, 30 Aug 2019 05:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567169319; cv=none; d=google.com; s=arc-20160816; b=AUqvpZeBjbmWhmPgnfNNCi8vyeR7VzWAxnOomB73Y4jwc73/zvCf3QfMyTkLekM2mv +obbWfTmr/v5/tlOxp6KVbU3lTrg6uFJ19puJ+h/jffz5vFq00IxH7frcofxKJzZdTsv G+3lV823i9WzwLcvwZ/VQgFIiA1YxMhj4shRmTuiswWSqHlJveaHDwbYueOseqxBR4Hw OEQXvB0K5gI2bgVxZ/ZwWMlYm0tkd0CtoXia/a9ZyFjgGBUK1y5wKS2CHZXeISPLT2MS qOiMw5/bqnohX6Ob8qxogTa/BBAAPZWlw1gxibMU0YlIIx00ByCLAYsK2gpvY1L1+3fN hWVA== 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=YyYE3CtW1TvkcdPwGuzIRqOIp932XqUVTXmahtNFd/4=; b=yCe6uac3u18jej53QQKAuHZs++49r+P8WHNxDOqzZrQWjIfZzOB5TWrYt0AYg25fva uQXC73xrBVk5I9QGTVUeRVC8JRfgoz0J7nDGr4k923CDxWN+VkDNMeyMRASSg47XqQ8h JTJggpt2kt8HMp7GO/XxhMVWgCEQXg0nCDVwTHX/D3WpDrxdgyvZUzKwonK5rzF3otNq W6ZNqvMAJynv8HqB+IIkpvSul3nTPYNbOkRqJV2mfnoM0m6JgcLOSfo8pnp6QZ3mNHcN ZfmDUPTksqTIGhKQ5HNz1FUfjEHF5qk/8udBimfzu+cFyjyRyrvSMovseEQwzNxJ647v fC/g== 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 x65si5927412pfd.238.2019.08.30.05.48.23; Fri, 30 Aug 2019 05:48:39 -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 S1728170AbfH3Mp5 (ORCPT + 99 others); Fri, 30 Aug 2019 08:45:57 -0400 Received: from sauhun.de ([88.99.104.3]:53526 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727417AbfH3Mp5 (ORCPT ); Fri, 30 Aug 2019 08:45:57 -0400 Received: from localhost (p54B335BE.dip0.t-ipconnect.de [84.179.53.190]) by pokefinder.org (Postfix) with ESMTPSA id 2E6DC2C0095; Fri, 30 Aug 2019 14:45:55 +0200 (CEST) Date: Fri, 30 Aug 2019 14:45:54 +0200 From: Wolfram Sang To: Alexandre Belloni 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: <20190830124554.GB2870@ninjato> References: <20190820154239.8230-1-wsa+renesas@sang-engineering.com> <20190820154239.8230-2-wsa+renesas@sang-engineering.com> <20190829205752.GL21922@piout.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <20190829205752.GL21922@piout.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > Signed-off-by: Wolfram Sang > > --- > > Build tested only, buildbot is happy, too. > >=20 > > Please apply to your tree. > >=20 >=20 > I'm confused because I already applied: > https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git/commit= /?h=3Drtc-next&id=3D7150710f3084de8d35ce3221eeae2caee8813f92 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. --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl1pGoIACgkQFA3kzBSg KbbdMQ//c3MTjmSg7hunKGDkz/mWkGCMB1YysqH/xm8AgkknadF9iWIjFxyuFMuB Kt+rNP8b1oaJqoIHZw38IVcUsf0Z+kNjOWEeMGJU327atwSaOX9X4uTnxNoMDgBS MiDsuaasGP9JnVeJbn4E4/bKuUUAGPGrz2cF2EvOO2qm55s3k1O4nT7NhrK0/Fla Tw8cB4KoDN/+0UjxearL5RAXcbBv8XOPc2d2jrR586O/NFiFUOlsE5JbsGOwPD45 0X2SAKk4Ctka9jyI9C7yRB21tvLwelLOdHecb/Uh2pvnA+n08Z1PbWSnLa9nXPLa RQBqc/0fP0aE/d1pUSIuO0S5tvnHEcJvd8kg3XTzwMUv/hAUT9fFiIXnh5mWyec4 agu2Yo39gLdlNiwPpvBewkPwrvjXIzdqAciQ9rg+sjDhfn/K0AWaSEQDL+bsp/Nq mcqq8rh72t2EChBfdengI0f/Vrr8Js+/snGs9R56kNkHU2e1Q+Fyd9lhvCc6grkh FwtL8z7jP2MF9DXS9Ivq9XggYOmey4BAiViu105Y/5C7ZOTWECOm6RUXUCEf/tZa PvRpQI3qcyFjbANBhfPb+hoDO1XzzWfw5gLivrwTrGccNwuqAdeY93Mzvxnb7nE3 wVrQvSpAyEdwdNVvQjy1JnzZvAo6JM+iGnN4pMZoOPtEmaxUVEE= =QT51 -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip--