zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
9.83k stars 6.06k forks source link

sensor: voltage_divider: fix `power-gpio` #72731

Closed JordanYates closed 2 weeks ago

JordanYates commented 2 weeks ago

CONFIG_PM_DEVICE being disabled does not mean that the power-gpio does not need to be controlled.

Additionally, not having a power-gpio property does not mean that power management is not supported, just that is has no work to do.