From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55431 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726330AbfEaMYf (ORCPT ); Fri, 31 May 2019 08:24:35 -0400 Date: Fri, 31 May 2019 14:24:34 +0200 From: Pavel Machek Message-ID: <20190531122434.GC3722@amd> References: <254cc03d5467ba7db0f5677646266768e5b24127.1559127603.git.nikolaus.voss@loewensteinmedical.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4ZLFUWh1odzi/v6L" Content-Disposition: inline In-Reply-To: Sender: linux-pwm-owner@vger.kernel.org List-ID: Subject: Re: [PATCH 2/3] PWM framework: add support referencing PWMs from ACPI To: Dan Murphy Cc: Nikolaus Voss , "Rafael J. Wysocki" , Len Brown , Robert Moore , Erik Schmauss , Jacek Anaszewski , Thierry Reding , linux-acpi@vger.kernel.org, devel@acpica.org, linux-leds@vger.kernel.org, linux-pwm@vger.kernel.org --4ZLFUWh1odzi/v6L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >+struct pwm_device *acpi_pwm_get(struct fwnode_handle *fwnode) > static? > >+{ > >+ struct fwnode_reference_args args; > >+ struct pwm_chip *chip; > >+ struct pwm_device *pwm =3D ERR_PTR(-ENODEV); > >+ int ret; > >+ > >+ memset(&args, 0, sizeof(args)); >=20 > args should be zero'd out when initialized on the stack so this is > necessary. What? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --4ZLFUWh1odzi/v6L Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzxHQIACgkQMOfwapXb+vKuIQCfW5dIKIOa940BDGi5OVK8pf3K ByQAnAsMR3DUm4QgoARft8zBHpwJdHyI =i6ur -----END PGP SIGNATURE----- --4ZLFUWh1odzi/v6L--