Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4741440pxk; Wed, 30 Sep 2020 10:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8NPpzNbCNG3tAp9ey3NeFm/yniCL/Z6pxIi7h2uA67mcMK7VPPz6V5u/Mmqi//mZjqZVx X-Received: by 2002:a17:906:454e:: with SMTP id s14mr4058592ejq.137.1601486797121; Wed, 30 Sep 2020 10:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601486797; cv=none; d=google.com; s=arc-20160816; b=eGRLcZPv9+/yVBrIEBsOd6ZZcTGnz+CmNtzCyQtGjDg3IGcrkYc6E0bKsmieDm4Wft 3azyBsFUdU+Smg1S/rflqarphwXneyaQfaYC+o7c11r+IAJef92G39dLDBM9hji6j9Zt 7XKr2pipSvusxFAprcujoNVvz56EbqyaHdCvQhNScUdvgsU5OiA/XyzS5AFLxGYZg1q5 IXbXQB5Hg9tfZ0YkY62zvwXPIk/nhkkDTLvIneir3PLGzl3JbZtwVOAUUaTWaVCWdR9u G/h54CZxf7bBhPOKJ6Z/4BCM6BZGN07BUHWITgjkz8cvINB7kpIYfGUckK8oWkO60o3O laKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=LWa/zw0ZHTDClFLRp51FywowwyEc44aoi7fN0vmY8DQ=; b=hxfbQb4Tmv7hxNVH1DkdcfbApKa6G4FH01nB7SQDnfLVSIzwcGt2iztcpFTKBb/Yz0 yLUXo+vo6spqeORt3PihLuIqmK1wWsej8/oSmRqy6IvEqXptez6xJIHj6hAzSYpfKugY aS6w+J7Wb4vjXQ44+EyLKSpct5YvBiVkjyi29TPov+IYqnV8zXs2XDLwgE9788JI49YI 0CHS9ZKJHHVFNBoaR1cT+BZvCyH/pwgxn0xFsYKCisDq2COpghGzEAAI4fj4Y/jvHk2E uAFE10LK5SW5pKC/ps0bZivrAlO8m0NTNbUsBABqFh0HmbwRCH+KYDBbJfHIId2//k6O lbPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si1492259edp.364.2020.09.30.10.26.14; Wed, 30 Sep 2020 10:26:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731593AbgI3RYp (ORCPT + 99 others); Wed, 30 Sep 2020 13:24:45 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:60648 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725823AbgI3RYp (ORCPT ); Wed, 30 Sep 2020 13:24:45 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 144EF1C0B76; Wed, 30 Sep 2020 19:24:42 +0200 (CEST) Date: Wed, 30 Sep 2020 19:24:41 +0200 From: Pavel Machek To: Alexander Dahl Cc: Alexander Dahl , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, Jacek Anaszewski , Dan Murphy , Rob Herring , linux-kernel@vger.kernel.org, Peter Ujfalusi , Marek =?iso-8859-1?Q?Beh=FAn?= , Denis Osterland-Heim Subject: Re: [PATCH v5 1/3] leds: pwm: Remove platform_data support Message-ID: <20200930172441.GI27760@duo.ucw.cz> References: <20200919053145.7564-1-post@lespocky.de> <20200919053145.7564-2-post@lespocky.de> <20200919094418.GC12294@duo.ucw.cz> <11962635.BNa8PrgvAO@ada> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J+eNKFoVC4T1DV3f" Content-Disposition: inline In-Reply-To: <11962635.BNa8PrgvAO@ada> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --J+eNKFoVC4T1DV3f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > > +__attribute__((nonnull)) > > >=20 > > > static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv, > > > =20 > > > struct led_pwm *led, struct fwnode_handle *fwnode) > > > =20 > > > { > >=20 > > This normally goes elsewhere -- right? I'd expect: > >=20 > >=20 > > static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv, > > struct led_pwm *led, struct fwnode_handle *fwnode) > > __attribute__((nonnull)) >=20 > I found both variants in kernel code. I can live with both variants and = have=20 > no strong preference. >=20 > My initial intention to add it was to get a compiler warning in case some= one=20 > does not pass a fwnode here, e.g. when using that old platform_data appro= ach=20 > (which is supposed to be removed with this patch). You might call it a s= elf=20 > check on my own changes. I can also drop that attribute if you don't wan= t=20 > that kind of stuff in linux-leds. I'm okay with it at the second place :-). Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --J+eNKFoVC4T1DV3f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX3S/WQAKCRAw5/Bqldv6 8rDKAKCNDbu5Rgb8esUqr42ANlpnrNDlzgCgotvZMGrIVuUyMCrK5Q++5jbr4BE= =XHap -----END PGP SIGNATURE----- --J+eNKFoVC4T1DV3f--