Just some refactoring to make the next patches better readable. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>