reset_source: introduce reset_source_to_string
We have a few places where driver code prints reset_source_name() to
console after setting the reset source.

This working is probe order dependent, because reset_source_name()
prints the highest priority reset_source so far, which doesn't
necessarily have to be the one that was just computed.

Implement reset_source_to_string, so drivers can be migrated to use it.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent c9322d4 commit c6250f94edb7765d0cff198cb0ac87f75e556276
@Ahmad Fatoum Ahmad Fatoum authored on 10 Feb 2020
Sascha Hauer committed on 19 Feb 2020
Showing 2 changed files
View
common/reset_source.c
View
include/reset_source.h