wm8350_register_led(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… wm8350_register_led β€” bestie's guide to the Kernel API Manual ✨

okay so picture this: it's a wm8350_register_led(9) page, it lives in the Kernel API Manual, and it's literally about registering a WM8350 LED output. that's the whole vibe. we're gonna get you fluent in it, no cap πŸŽ€


✨ SYNOPSIS ✨

int wm8350_register_led (struct wm8350 *wm8350 , int lednum , int dcdc ,
       int isink , struct wm8350_led_platform_data *pdata );

like, she returns an int, she takes five things, and she's gonna set up an LED for you. iconic behavior honestly πŸ’…


🌸 ARGUMENTS 🌸

  • wm8350 β€” the WM8350 device you're configuring. this is the main character, the device everything happens on 🫢
  • lednum β€” the LED device index you want to create. yes bestie, you're picking which LED ✨
  • dcdc β€” the DCDC you're gonna use for this LED. choose wisely πŸ”₯
  • isink β€” the ISINK to use for the LED. the other half of the power duo πŸ’–
  • pdata β€” the configuration for the LED. all the settings go in here πŸŽ€

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: the WM8350 supports using an ISINK together with a DCDC, and the whole point is providing a power-efficient LED driver. that's the combo, that's the moment, that's the slay 🌈

this function registers the regulators and instantiates the platform device for a LED. so like, she does two things and both of them matter πŸ’œ

⚠️ important bestie, don't skip this part: the operating modes for the LED regulators must be configured using wm8350_isink_set_flash, wm8350_dcdc25_set_mode and wm8350_dcdc_set_slot prior to calling this function. prior! before! not after! do the setup first or it's giving chaos 😭

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/regulator/wm8350-regulator.c β€” go read her, she's the source of truth πŸ“–

⭐ cute little sign-off ⭐

that's the page, bestie! it comes to you from ./drivers/regulator, dated October 2026, and it's filed under wm8350_register_led(9). go configure those regulators first, ok? iykyk πŸ§šπŸ’–

πŸ“¦ where this page comes from