[PATCH 2/2] regulator: Fix 'do-nothing' value for regulators without suspend state

2018-09-03 Thread Marek Szyprowski
Some regulators don't have all states defined and in such cases regulator core should not assume anything. However in current implementation of of_get_regulation_constraints() DO_NOTHING_IN_SUSPEND enable value was set only for regulators which had suspend node defined, otherwise the default 0

[PATCH 2/2] regulator: Fix 'do-nothing' value for regulators without suspend state

2018-09-03 Thread Marek Szyprowski
Some regulators don't have all states defined and in such cases regulator core should not assume anything. However in current implementation of of_get_regulation_constraints() DO_NOTHING_IN_SUSPEND enable value was set only for regulators which had suspend node defined, otherwise the default 0