bq257xx_charger_probe(9)
π NAME π
okay bestie, welcome to the bq257xx_charger_probe(9) page in the Kernel API Manual β it's literally the probe routine for the charger platform device. π
β¨
β¨ SYNOPSIS β¨
int bq257xx_charger_probe (struct platform_device *pdev );
π«Ά ARGUMENTS π«Ά
pdevβ the platform device. that's the whole argument, bestie. π
π DESCRIPTION π
so here's the whole glow-up this function does when it probes the charger device: it allocates the driver data structure, selects the appropriate chip-specific function pointers, registers the power supply, parses device tree properties for battery limits, initializes the hardware, and sets up the interrupt handler if one is available. π₯π
πΈ RETURN πΈ
Returns 0 on success or an error code on failure. that's the vibe check, periodt. π
π¦ SEE ALSO π¦
the whole linked-up squad, iykyk: π
- Kernel file
./drivers/power/supply/bq257xx_charger.c struct bq257xx_chip_info(9)struct bq257xx_chg(9)bq25792_read16(9)bq25792_write16(9)bq25703_get_state(9)bq25792_get_state(9)bq25703_get_min_vsys(9)bq25792_get_min_vsys(9)bq25703_set_min_vsys(9)bq25792_set_min_vsys(9)bq25703_get_cur(9)bq25792_get_cur(9)bq25703_get_ichg_cur(9)bq25792_get_ichg_cur(9)bq25703_set_ichg_cur(9)bq25792_set_ichg_cur(9)bq25703_get_chrg_volt(9)bq25792_get_chrg_volt(9)bq25703_set_chrg_volt(9)bq25792_set_chrg_volt(9)bq25703_get_iindpm(9)bq25792_get_iindpm(9)bq25703_set_iindpm(9)bq25792_set_iindpm(9)bq25703_get_vbat(9)bq25792_get_vbat(9)bq25703_hw_init(9)bq25792_hw_init(9)bq25703_hw_shutdown(9)bq25792_hw_shutdown(9)bq257xx_set_charger_property(9)bq257xx_get_charger_property(9)bq257xx_property_is_writeable(9)bq257xx_external_power_changed(9)bq257xx_irq_handler_thread(9)bq257xx_parse_dt(9)bq257xx_charger_shutdown(9)
byeee bestie π β source/version: ./drivers/power/supply, date: October 2026, page: bq257xx_charger_probe(9) β¨
π¦ 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