Re: [PATCH v2 1/3] parser: add TYPE_STRING marker to path references

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



On Mon, Jul 30, 2018 at 09:57:35PM -0600, Rob Herring wrote:
> Path references are also a string, so add TYPE_STRING marker in addition
> to REF_PATH.
> 
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
> ---
> Not really that familiar with the parsing code, so maybe this should be 
> done differently.

Looks fine to me, applied.

> 
>  dtc-parser.y | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/dtc-parser.y b/dtc-parser.y
> index 815481a9bb23..dd70ebf386f4 100644
> --- a/dtc-parser.y
> +++ b/dtc-parser.y
> @@ -287,6 +287,7 @@ propdata:
>  		}
>  	| propdataprefix DT_REF
>  		{
> +			$1 = data_add_marker($1, TYPE_STRING, $2);
>  			$$ = data_add_marker($1, REF_PATH, $2);
>  		}
>  	| propdataprefix DT_INCBIN '(' DT_STRING ',' integer_prim ',' integer_prim ')'

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Device Tree]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux