discover: Add DEVICE_TYPE_ANY for matching any device
authorJeremy Kerr <jk@ozlabs.org>
Thu, 30 Jan 2014 08:32:21 +0000 (16:32 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 30 Jan 2014 13:59:10 +0000 (21:59 +0800)
commit95a566908a5e02c51bd2af6b468df3fb9ad1bf75
treeb1152eaef4af8aa874da0e3389d03b89602453c5
parentaa530148044a7c6d7ec7b6a32672cc69d53979b2
discover: Add DEVICE_TYPE_ANY for matching any device

Currently, If we want disable all but a specific device type from
default boot, we need to add a negative priority for all other devices.

This change adds a DEVICE_TYPE_ANY definition, to allow a simpler way to
express "only boot a specific type" by default behaviour.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/device-handler.c
lib/types/types.h
ui/test/discover-test.c