dm: blk: Convert interface type to an enum
authorSimon Glass <sjg@chromium.org>
Mon, 29 Feb 2016 22:25:40 +0000 (15:25 -0700)
committerSimon Glass <sjg@chromium.org>
Mon, 14 Mar 2016 21:34:50 +0000 (15:34 -0600)
commit5ec4f1a5f35dc71881f88c84176c568308133640
tree568dfc65217bd2241301461b1dafd0c2929479a4
parent1a73661bc7a7ad2d741f7d7519872ca18231598c
dm: blk: Convert interface type to an enum

Since these are sequentially numbered it makes sense to use an enum. It
avoids having to maintain the maximum value, and provides a type we can use
if it is useful.

In fact the maximum value is not used. Rename it to COUNT, since MAX suggests
it is the maximum valid value, but it is not.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
include/blk.h