Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2588812ybv; Fri, 14 Feb 2020 22:50:54 -0800 (PST) X-Google-Smtp-Source: APXvYqwziD78dk+mTLzslv/NnG55TCLkBjqVVBM1Q+EJKnMn0WganJU6pfq6cyl6k3E7PMFVYHV3 X-Received: by 2002:aca:aa05:: with SMTP id t5mr4258672oie.93.1581749454111; Fri, 14 Feb 2020 22:50:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581749454; cv=none; d=google.com; s=arc-20160816; b=fZ4O6eAcdXcMQNMHeOpxHIgOgHZRRVf9+q0pDzz04DS24ytT7MYv3XbAZEH5T5f4IJ fUFI/atO+pgQxx1W0WuBtEQYIB6SRYHz4t0pUgmnl5luFkgn8ruBib6m3YqtB39lGX3M LKDOkM4F/sgzgEyPkFK8bUgZJH+Vp8ttaybfDeznvz/z8rW8Yo2mkG77iWEPG5K4AMlb ZU0/0QIlk84j6pZBGduT4BdNZNVUgDRGMMUaOZ/kyyLxHoXzmnh58qZ7Cq8AzdvsMQDZ Eb25HGfIafrDDXSj2l4d6zisfOG7XWYJjC6YVFByQBUeBje8cCOqneqoomXZ//6UvHQI f3TQ== 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=eOnCN1jPz1BiZVLKj9hqqFy55n4btF0EUf2bZ3xqAKc=; b=IzM2p0sgNAvY3OmDDjxV267oV5Tn62SJOfekfDIbaDf/Kqp54mIgCX+Qv35dvxKuJ4 JudS5LRDZjwDNmCrRCtvblrkcaF4me4isJZSYFP7UVGZJlDI5ZrhdCnpIn5fRImAlkKJ 0T5nnS0I3U6tf1S3HmM4lB35HKRl7DbKmdgRSdS7qThco0PuQSNA7bbVbYuvolMGfIE9 sK1FGwep/YLswAbTCHL20tPsefwReBNWDAxJpM+yUM5luKS2/CGMyBXFKwhqBGUo8qUk oRtQUOFxuZJL88/Oa32lvqR8yI94vD+l7Z2uJiQ+RiskW0Ufimmk69LO8WuqGpU9T6ce 0Osg== 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 r10si3847591otn.241.2020.02.14.22.50.42; Fri, 14 Feb 2020 22:50:54 -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 S1726063AbgBOGuY (ORCPT + 99 others); Sat, 15 Feb 2020 01:50:24 -0500 Received: from sauhun.de ([88.99.104.3]:37672 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgBOGuY (ORCPT ); Sat, 15 Feb 2020 01:50:24 -0500 Received: from localhost (p5486C46A.dip0.t-ipconnect.de [84.134.196.106]) by pokefinder.org (Postfix) with ESMTPSA id A395A2C08B8; Sat, 15 Feb 2020 07:50:21 +0100 (CET) Date: Sat, 15 Feb 2020 07:50:18 +0100 From: Wolfram Sang To: Jean Delvare Cc: Wolfram Sang , linux-i2c@vger.kernel.org, Benjamin Tissoires , Phil Reid , Robert Richter , George Cherian , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] i2c: convert SMBus alert setup function to return an ERRPTR Message-ID: <20200215065018.GA1005@ninjato> References: <20200210172929.6001-1-wsa+renesas@sang-engineering.com> <20200210172929.6001-2-wsa+renesas@sang-engineering.com> <20200215072020.75b1b772@endymion> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20200215072020.75b1b772@endymion> 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 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 15, 2020 at 07:20:20AM +0100, Jean Delvare wrote: > Hi Wolfram, >=20 > On Mon, 10 Feb 2020 18:29:25 +0100, Wolfram Sang wrote: > > Only few drivers use this call, so drivers and I2C core are converted at > > once with this patch. By simply using i2c_new_client_device() instead of > > i2c_new_device(), we easily can return an ERRPTR for this function as > > well. To make out of tree users aware that something changed, the > > function is renamed to i2c_install_smbus_alert(). >=20 > I wouldn't bother renaming the function. Chances that there actually > are out-of-tree users of this function are pretty small, and if that is > the case, they can adjust their code easily in a way that is still > compatible with old kernels. Agreed, it is easy. But they need to *know* that they need to adjust. Build error makes it obvious. Otherwise, the code will compile and silently not work anymore, I am afraid. --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAl5HlKUACgkQFA3kzBSg KbaemRAAtggqw4SVtbyQCRrmfxnLHzx6kn4nh+llG1MMVBv0T00C1mN/VwljvQAO lD+fOgYcon9hqXh8NS7CruNfVhOQ0DsWsPEEbagy7ajWiEnMuKWaxlu9hKDdFaWx FAuPxhY7i5aS8jkZOK+5d3m3xXJR18dT6NwlwVNAEde4deevE2CnnVixwNwiPZbC pOfktojkOIb3YFyC5XO/2Qq0bHnU1XM7nyjHHMqo9wwxZxV8Y+PlQ3M5sjEIN4af VSeoIRjaii6cKSlANDylKxpyrF8R24tiJuD8eCUOZR+piG+iQ5eCnhs18f3s5ISC nZ3CsbK3yd6dpujDAACaklbIVXEjuVnfQCVmrvIp/HVDO6ttvqx9ecuERRvjdPjO w3DuKLRk3+VqkxGt2SsnXU4oih0I410wjRrhq0zvT3toTjocWj6r0zRXn2PW9IoC cGebBHvPMsyVQQNCQ04dUmg4P+BY5aa4BFcvQeaVWcy+9sltcpNcLWkmZH/+q964 w0wtZh4aRemO8GGLDStdU8wXx2hGdPyzMoj7xjPnyXnE+PBnym9Wd0CDvofxa//o WFg3eKkSiCxfkqHd9NwvNTiKV1bYllfusWrlaTCjZswJm3wf/PTnyWRXJbLtIer2 ztTcsLx9CtA/vvAbn3zsOXqcS6N7cxOTAoi1rNzEId64QnIUxJE= =XNJq -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--