[U-Boot] [PATCH 18/30] dm: block: Rename device number member dev to devnum

Stephen Warren swarren at wwwdotorg.org
Wed Feb 17 00:23:08 CET 2016


On 02/14/2016 07:16 PM, Simon Glass wrote:
> This is a device number, and we want to use 'dev' to mean a driver model
> device. Rename the member.

> diff --git a/cmd/cbfs.c b/cmd/cbfs.c
> index cdfc9b6..779e9c0 100644
> --- a/cmd/cbfs.c
> +++ b/cmd/cbfs.c
> @@ -141,6 +141,7 @@ int do_cbfs_ls(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
>   			type_name = "cmos layout";
>   			break;
>   		case -1:
> +		case 0:
>   			type_name = "null";
>   			break;
>   		}

Should that be part of the earlier cbfs fix patch?



More information about the U-Boot mailing list