ucb1x00_adc_enable(9)
ucb1x00_adc_enable(9) πβ¨
okay so bestie, welcome to the Kernel API Manual π β this is the page for ucb1x00_adc_enable(9), and itβs literally the βletβs turn the ADC onβ moment. No cap, itβs giving tiny but important gatekeeper energy π
.
π NAME π
ucb1x00_adc_enable β enable the ADC converter β¨
πΈ SYNOPSIS πΈ
void ucb1x00_adc_enable (struct ucb1x00 *ucb );
π ARGUMENTS π
ucbβ the UCB1x00 structure describing chip. Thatβs the whole vibe: you hand over the chipβs struct and she knows what to do π«Ά.
π₯ DESCRIPTION π₯
Okay so, bestie, this function enables the ucb1x00 and the ADC converter on the UCB1x00 for use π. Any code wishing to use the ADC converter must call this function prior to using it. Like, itβs not optional β itβs the entry ticket to the ADC party ποΈβ¨.
She takes the ADC mutex to prevent two or more concurrent uses, and therefore may sleep π΄. That means she can only be called from process context, not interrupt context. fr fr, do not try her in interrupt context β thatβs not her era π.
You should release the ADC as soon as possible using ucb1x00_adc_disable. Like, donβt hog the ADC, bestie β share the love π
.
β οΈ reminder: this function may sleep because it takes the ADC mutex, so process context only. Interrupt context is a no-no π.
π¦ SEE ALSO π¦
Kernel file ./drivers/mfd/ucb1x00-core.c is where it lives, and the SEE ALSO besties are ucb1x00_io_set_dir(9), ucb1x00_io_write(9), ucb1x00_io_read(9), ucb1x00_adc_read(9), and ucb1x00_adc_disable(9) π.
made with love from ./drivers/mfd , dated October 2026 , for ucb1x00_adc_enable(9) β mwah ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms