From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfram Sang Subject: Re: [PATCH] of/i2c: call i2c_verify_client from of_find_i2c_device_by_node Date: Mon, 23 Apr 2012 13:04:54 +0200 Message-ID: <20120423110454.GE19192@pengutronix.de> References: <1334688135-8355-1-git-send-email-swarren@wwwdotorg.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1673070296985245510==" Return-path: In-Reply-To: <1334688135-8355-1-git-send-email-swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Stephen Warren Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Rob Herring , linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ben Dooks List-Id: linux-i2c@vger.kernel.org --===============1673070296985245510== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="phCU5ROyZO6kBE05" Content-Disposition: inline --phCU5ROyZO6kBE05 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 17, 2012 at 12:42:15PM -0600, Stephen Warren wrote: > From: Stephen Warren >=20 > i2c_bus_type may contain both I2C clients and I2C adapters. Fix > of_find_i2c_device_by_node to call i2c_verify_client to ensure that it > only returns non-NULL of I2C clients. >=20 > Signed-off-by: Stephen Warren Patch looks good to me, so I took the liberty and applied it to i2c-embedded/for-next. Acks by either Grant or Rob would still be appreciated. Thanks! --=20 Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | --phCU5ROyZO6kBE05 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk+VN1YACgkQD27XaX1/VRt/YgCgxquqy+RdHFpOL+sFuAacymPG lZgAoKoIzD7iAMGFVYia3BymuryR4hGo =C+tK -----END PGP SIGNATURE----- --phCU5ROyZO6kBE05-- --===============1673070296985245510== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ devicetree-discuss mailing list devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org https://lists.ozlabs.org/listinfo/devicetree-discuss --===============1673070296985245510==--