And this one is generic DT parsing and seems quite similar to one in apq8096.cI totally agree with Vinod, We should probably come up with a library functions something like common.c so that we do not duplicate code.
Can we move these into a lib and use them instead of duplicating.