On Mon, Aug 21, 2017 at 01:58:02PM +0100, Harry van Haaren wrote:
This commit adds a macro to easily validate a service ID, and then
lookup the service pointer, or return a user-specified error code.
This marco will be heavily used in the following patches as it will
be ID based instead of pointer-based.
The probe_capability function is reworked to use an integer ID instead
of a pointer. Rework the service_get_name() function is updated to use
IDs. Unit tests are updated to keep things compiling after each commit.
Signed-off-by: Harry van Haaren <redacted>
Series-Acked-by: Pavan Nikhilesh [off-list ref]