Revert "device: simplify structure of handles array"
This reverts commit ec331c6f. Although it's a valid simplification under the assumption that we're going to be padding the array out anyway, it would use extra ROM if we fix the build system issues that are currently forcing gen_handles.py to introduce extra padding in the handles arrays for linker pass 2. On the (perhaps optimistic) assumption that we're going to fix the build system, let's get rid of a commit that would get in the way. The extra "complexity" in device_required_handles_get() is trivial. This gets rid of a comment describing the linker passes, but the structure of the comment is a bit misleading (and it contains incorrect information for the results of pass 2: the terminator at the end is DEVICE_HANDLE_ENDS, not DEVICE_HANDLE_NULL). Signed-off-by:Martí Bolívar <marti.bolivar@nordicsemi.no>
Loading
Please sign in to comment