bootchooser: Add reference counting
This adds reference counting to the bootchooser. Instead of creating a
new bootchooser instance with each bootchooser_get() we return a
reference to the existing bootchooser.
This makes the behaviour consistent when bootchooser_get() is called
multiple times.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8a39674 commit 416024c9aefb9c484033433d9b051d422f34ce64
@Sascha Hauer Sascha Hauer authored on 18 Oct 2018
Showing 1 changed file
View
common/bootchooser.c