[U-Boot] [PATCH v2 07/32] dm: blk: Convert interface type to an enum
Simon Glass
sjg at chromium.org
Sun Mar 13 02:52:31 CET 2016
On 29 February 2016 at 15:25, Simon Glass <sjg at 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 at 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.
More information about the U-Boot
mailing list