Re: [U-Boot] [PATCH v2 07/32] dm: blk: Convert interface type to an enum

2016-03-12 Thread Simon Glass
On 29 February 2016 at 15:25, Simon Glass wrote: > 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

[U-Boot] [PATCH v2 07/32] dm: blk: Convert interface type to an enum

2016-02-29 Thread Simon Glass
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.