lkml.org 
[lkml]   [2023]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [net-next PATCH v3 03/13] Documentation: leds: leds-class: Document new Hardware driven LEDs APIs
On Mon, May 29, 2023 at 03:10:15PM +0700, Bagas Sanjaya wrote:
> On Sat, May 27, 2023 at 01:28:44PM +0200, Christian Marangi wrote:
> > + - hw_control_set:
> > + activate hw control. LED driver will use the provided
> > + flags passed from the supported trigger, parse them to
> > + a set of mode and setup the LED to be driven by hardware
> > + following the requested modes.
> > +
> > + Set LED_OFF via the brightness_set to deactivate hw control.
> > +
> > + Return 0 on success, a negative error number on flags apply
> > + fail.
> "... on failing to apply flags."
>
> > + - hw_control_get_device:
> > + return the device associated with the LED driver in
> > + hw control. A trigger might use this to match the
> > + returned device from this function with a configured
> > + device for the trigger as the source for blinking
> > + events and correctly enable hw control.
> > + (example a netdev trigger configured to blink for a
> > + particular dev match the returned dev from get_device
> > + to set hw control)
> > +
> > + Return a device or NULL if nothing is currently attached.
> Returns a device name?

How about "Returns a pointer to a struct device ..."

Andrew

\
 
 \ /
  Last update: 2023-05-29 16:53    [W:0.068 / U:0.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site