From: Jeremy Kerr Date: Tue, 5 Mar 2013 05:49:15 +0000 (+0800) Subject: discover: simplify handler switch statement X-Git-Tag: v1.0.0~753 X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=commitdiff_plain;h=0fdc5cc3f296db134729fe58e074c20084b99459;hp=0fdc5cc3f296db134729fe58e074c20084b99459 discover: simplify handler switch statement Instead of using nested switch statements in device_handler_event, define an array of handlers, and lookup instead. Signed-off-by: Jeremy Kerr Signed-off-by: Geoff Levand ---