opnsense-src/sys/dev/extres/regulator
Emmanuel Vadot bfeb2bd7ca regulator: Check status before disabling
When disabling regulator when they are unused, check before is they are
enabled.
While here don't check the enable_cnt on the regulator entry as it is
checked by regnode_stop.
This solve the panic on any board using a fixed regulator that is driven
by a gpio when the regulator is unused.

Tested On: OrangePi One
Pointy Hat to:	    myself
Reported by:	kevans, Milan Obuch (freebsd-arm@dino.sk)
2018-04-20 20:30:33 +00:00
..
regdev_if.m
regnode_if.m
regulator.c regulator: Check status before disabling 2018-04-20 20:30:33 +00:00
regulator.h extres/regulators: Add sysctls for regulators 2018-03-11 04:37:05 +00:00
regulator_bus.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
regulator_fixed.c Rename gpiobus_map_pin() to gpiobus_acquire_pin(), to better reflect the 2016-05-26 15:45:36 +00:00
regulator_fixed.h