OF core code provides helpers for counting strings and reading them so
use them instead of doing this manually. This simplifies the code a bit.
Signed-off-by: Rafał Miłecki <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Signed-off-by: Brian Norris <[email protected]>