Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1800108pxk; Sat, 19 Sep 2020 02:45:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7UXRjEtrJoQmhOQcJmljyn0CaJRln30NSTbz2uMIL0v8W1M82OmVvEDuziavcCq39Ajqp X-Received: by 2002:a17:906:8289:: with SMTP id h9mr40026467ejx.45.1600508749889; Sat, 19 Sep 2020 02:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600508749; cv=none; d=google.com; s=arc-20160816; b=DMNRGLiFOSPa0RhqgARxtdMVg5uMCJexYDBodRSi+DU3XpSoZwcQoqVOCnHXLCMgnW y4NqWeB2edAc5n8GJIlXHl62yTo+6eKeZnRTjWNukVTk16Qx9R6rlqqN0pYU01/Fx1fW nhPiVhsgqJgQ+QNKACEujWTCHP9ua0+Vgak0S4tACESa2xsQz/4t7twUSF7o51dVI2dI nXUoYk7QKaXWZlpWBUUgq9v/KNIha3ZGQD/S+YME1/H5WhrqiWPgrdinOV27se83ICdF dBkA6+Kybo5d9C6utZTKYjKPrpGdXxLFaWNjFE+IFQiKHpZ1F0NhXQEfbaPNy7yZvQwz GAsQ== 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=MsMET/cUb66cNbuTFh9eoESlafCa+fRBkLpl56pnLsA=; b=uu79Rt5zXl05svqTxfVWUqi2T0mYH8TH1AbcBn88IagyCJg8IvJb8UlVZYlvY69ZUG y/YNFQmfLQVZ3flNQ1JwSLuDoO9Qj24/iU+0yqX4m1hGCj8AMJ0cmq+1nJN6Gzcx4I7y POBsQSXeMt4gxZBHUmnVRCEkP+V8FYcvDK0IpHaSQv+uoO8C21d35HfmAkR7NdQ8OGM+ WdjIYVPEbKM0Eisk0Oh8GX8rs5CfJ1AOt8ImpAVodb6bctwu39iIFCPCszzYf2nYoo1Z 7GPyvMSUBYqX/IHif26H8xFGucvTyveSLfyCeryoX20NFofNNjrEb9U9AVchZ15dECOD f/ng== 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 gs18si4798055ejb.8.2020.09.19.02.45.24; Sat, 19 Sep 2020 02:45:49 -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 S1726201AbgISJoW (ORCPT + 99 others); Sat, 19 Sep 2020 05:44:22 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:43286 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbgISJoW (ORCPT ); Sat, 19 Sep 2020 05:44:22 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 374151C0B85; Sat, 19 Sep 2020 11:44:19 +0200 (CEST) Date: Sat, 19 Sep 2020 11:44:18 +0200 From: Pavel Machek To: Alexander Dahl Cc: 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?= , Alexander Dahl , Denis Osterland-Heim Subject: Re: [PATCH v5 1/3] leds: pwm: Remove platform_data support Message-ID: <20200919094418.GC12294@duo.ucw.cz> References: <20200919053145.7564-1-post@lespocky.de> <20200919053145.7564-2-post@lespocky.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="KDt/GgjP6HVcx58l" Content-Disposition: inline In-Reply-To: <20200919053145.7564-2-post@lespocky.de> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --KDt/GgjP6HVcx58l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > Since commit 141f15c66d94 ("leds: pwm: remove header") that platform > interface is not usable from outside and there seems to be no in tree > user anymore. All in-tree users of the leds-pwm driver seem to use DT > currently. Getting rid of the old platform interface will allow the > leds-pwm driver to switch over from 'devm_led_classdev_register()' to > 'devm_led_classdev_register_ext()' later. > @@ -61,6 +56,7 @@ static int led_pwm_set(struct led_classdev *led_cdev, > return pwm_apply_state(led_dat->pwm, &led_dat->pwmstate); > } > =20 > +__attribute__((nonnull)) > static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv, > struct led_pwm *led, struct fwnode_handle *fwnode) > { This normally goes elsewhere -- right? I'd expect: static int led_pwm_add(struct device *dev, struct led_pwm_priv *priv, struct led_pwm *led, struct fwnode_handle *fwnode) __attribute__((nonnull)) Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --KDt/GgjP6HVcx58l Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX2XS8gAKCRAw5/Bqldv6 8iapAKCTRc30eD7P0wc+NOhcH593+trd/QCfZ+5um+mTGHwp65tN1p4Xgs0rsDA= =2m5L -----END PGP SIGNATURE----- --KDt/GgjP6HVcx58l--