
13 Mar
2016
13 Mar
'16
2:52 a.m.
On 29 February 2016 at 15:25, Simon Glass sjg@chromium.org 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 COUNT, since MAX suggests it is the maximum valid value, but it is not.
Signed-off-by: Simon Glass sjg@chromium.org
Changes in v2:
- Add a missing word 'is' to the commit message
- Rename the enum to 'if_type' instead of 'if_type_t'
include/blk.h | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-)
Applied to u-boot-dm/next.