Implement regulator notifiers which get called when the voltage/current
authorkettenis <kettenis@openbsd.org>
Sat, 1 Apr 2023 08:37:23 +0000 (08:37 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 1 Apr 2023 08:37:23 +0000 (08:37 +0000)
commit3d6ac7bb28d02de6e54c896c7b0c886e9328b3f2
treeabb492555a94a58de82ee72593747a04a82a4abe
parent253c7ec9a58e71dd0f523b72635f8a5487519609
Implement regulator notifiers which get called when the voltage/current
for a regulator is changed or when the regulator gets initialized when it
attaches for the first time.  The latter makes it possible to register
a notifier for a regulator that hasn't attached yet.

ok dlg@
sys/dev/ofw/ofw_regulator.c
sys/dev/ofw/ofw_regulator.h