Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2808306imm; Mon, 16 Jul 2018 14:44:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc+ILJ+uMIRG2DLHaro0clm1g+obqKZTLDPnNLgpDISnSubC54obSR1wHW/cqoMJINj1/FI X-Received: by 2002:a63:4283:: with SMTP id p125-v6mr17258838pga.142.1531777486055; Mon, 16 Jul 2018 14:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531777486; cv=none; d=google.com; s=arc-20160816; b=HVrGAA9vx7g4C5Tyzej5kQqWdai+6TFqldvEwm++sJPCmq9aCKUbT+VVFVrzjilUMQ 4VNtFLHHS8zLa4vjRkWi2q6+qht2hk97LYX8r4FBKFBkZo9TJOwyot8pVky571o4Ldn2 YpZERLr0y5CRUYWUtI33bWmTJI5fX2AeqSEGwQcpSYzZ2EOuaoIDH1GitRW7hVPl3eIj Pv6OiSI83oPRPqZc+ANobyiPKzDOlRfQfl4zxSadSBAvEqZvoKP2kjkLGiBk2FFHUQRc jjpxkIihW4TCSgFWppgmjTNHDwEibjo4J3w7tbnNyI+nZ2lqDGcPcYkYZVl4la4p8QCN ie4g== 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:arc-authentication-results; bh=BzhCB/bBYntmgUbLwWfUDILuMEUqRil3sh5uuSvRK14=; b=qjFWEvmgkpOYpQfduXOlPNoLHSylnDLcgeU4kJZVrtaxNrRKFoOi7Z9IbY59WaCjd8 pSycEIY8O9UX56s7mKDnZL6Jh+zMa/j5wf1z8HeWk5He/4O663k6gSCZSgDmsH4GDHOF NaNoA5+IfDqslbYk3iCRKttRMuXdg2hKP++O7DEaQgEllT47gmh4PgFPEbLZdAt9/12t fEZvXUuCspfqWirn1HxwinAHWIpouvqypGrEaHVQn8goDmDV8LZKCtEJrhbeD2vgMXhk HRgNEDeI8KKnH6EVpI0GyMGTMPvClH4dJ6lXh4wPmYPwvFEJv0H0qIRbEdJbriHAEoOL +XIw== 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 20-v6si28703500pgl.358.2018.07.16.14.44.30; Mon, 16 Jul 2018 14:44:46 -0700 (PDT) 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 S1729828AbeGPWNQ (ORCPT + 99 others); Mon, 16 Jul 2018 18:13:16 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54641 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728290AbeGPWNQ (ORCPT ); Mon, 16 Jul 2018 18:13:16 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 62CED80592; Mon, 16 Jul 2018 23:43:55 +0200 (CEST) Date: Mon, 16 Jul 2018 23:43:54 +0200 From: Pavel Machek To: David Lechner Cc: Baolin Wang , jacek.anaszewski@gmail.com, bjorn.andersson@linaro.org, broonie@kernel.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 1/2] leds: core: Introduce generic pattern interface Message-ID: <20180716214354.GA10734@amd> References: <05c235df7bbcc4b898e7b263bf38338d9c822005.1531711385.git.baolin.wang@linaro.org> <6ecb22d5-fac4-dbe9-87e7-196d87d6d06f@lechnology.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1yeeQ81UyVL57Vl7" Content-Disposition: inline In-Reply-To: <6ecb22d5-fac4-dbe9-87e7-196d87d6d06f@lechnology.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --1yeeQ81UyVL57Vl7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon 2018-07-16 11:51:01, David Lechner wrote: > On 07/16/2018 06:10 AM, Baolin Wang wrote: > >From: Bjorn Andersson > > > >Some LED controllers have support for autonomously controlling > >brightness over time, according to some preprogrammed pattern or > >function. > > > >This adds a new optional operator that LED class drivers can implement > >if they support such functionality as well as a new device attribute to > >configure the pattern for a given LED. > > >=20 > Hmm... I was hoping that this would be a generic pattern trigger that > could be used by any LED (e.g. gpio LEDs), not just LEDs with hardware > support. I guess I cannot really test this after all. >=20 > I think it looks good for your use case though. Generic trigger doing patterns on any hardware would be welcome, too. I even have a copy of code somewhere, if you want to dust it off, clean up and merge... Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --1yeeQ81UyVL57Vl7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltNEZoACgkQMOfwapXb+vLr8wCfSAhGyEvmu8sdlw1crcLm1/Qg whYAoJa4On8pQxgK8jAsPP5TpXuiyytL =T15q -----END PGP SIGNATURE----- --1yeeQ81UyVL57Vl7--