From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dmitry Torokhov" Subject: Re: [PATCH 2/3] leds-clevo-mail: hw accelerated LED blink extension Date: Tue, 17 Jul 2007 09:04:34 -0400 Message-ID: References: <469C977A.8000908@freemail.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <469C977A.8000908@freemail.hu> Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: =?ISO-8859-1?Q?N=E9meth_M=E1rton?= Cc: Richard Purdie , linux-input@atrey.karlin.mff.cuni.cz, linux-kernel@vger.kernel.org, Rodrigo Pereira List-Id: linux-input@vger.kernel.org On 7/17/07, N=E9meth M=E1rton wrote: > > +Hardware accelerated blink of LEDs > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +Some LEDs can be programmed to blink without any CPU interaction. To > +support this feature, a LED driver can optionally implement the > +blink_set() function (see ). If implemeted, the > +ledtrig-timer tries to use it. The blink_set() function should retur= n > +1 if the blink setting is supported, or 0 otherwise, which means tha= t > +the LED will be turned on and off from software. Normally object methods in kernel return 0 on success and error code (such as -EINVAL for unsupported parameters) on error. --=20 Dmitry