On Wed, Apr 10, 2013 at 02:29:07PM -0400, Mike Frysinger wrote: > For a follow up commit, we want to be able to scan the buffer that was > returned to us. In order to do that safely, we need to know how big > the buffer actually is, so pass that back if requested.
Rather than changing all the callers, I'd prefer to see a new function implemented. The existing utilfdt_read(), which assumes the caller can get the size from the fdt header, can be reimplemented in terms of the version returning the length. -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
signature.asc
Description: Digital signature
_______________________________________________ devicetree-discuss mailing list devicetree-discuss@lists.ozlabs.org https://lists.ozlabs.org/listinfo/devicetree-discuss