Re: [cbootimage PATCH V2 3/5] Add token_supported function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/08/2014 08:30 AM, Penny Chiu wrote:
> Add a function called token_supported in cbootimage_soc_config.
> It is used to check if the input token is supported in specific
> tegra soc.

> diff --git a/src/t114/nvbctlib_t114.c b/src/t114/nvbctlib_t114.c

> +int t114_bct_token_supported(parse_token token)
> +{
> +	int index;
> +
> +	for (index = 0; index < sizeof(t114_root_token_list)/sizeof(t114_root_token_list[0]); index++)

It'd be nice if we had an ARRAY_SIZE() macro we could use here...

That would also make the line-length a bit more typical.

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux