hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/scripts/dtc/dtc-lexer.l
....@@ -1,21 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2005.
3
- *
4
- *
5
- * This program is free software; you can redistribute it and/or
6
- * modify it under the terms of the GNU General Public License as
7
- * published by the Free Software Foundation; either version 2 of the
8
- * License, or (at your option) any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
18
- * USA
194 */
205
216 %option noyywrap nounput noinput never-interactive
....@@ -212,14 +197,14 @@
212197 <*>\&{LABEL} { /* label reference */
213198 DPRINT("Ref: %s\n", yytext+1);
214199 yylval.labelref = xstrdup(yytext+1);
215
- return DT_REF;
200
+ return DT_LABEL_REF;
216201 }
217202
218203 <*>"&{/"{PATHCHAR}*\} { /* new-style path reference */
219204 yytext[yyleng-1] = '\0';
220205 DPRINT("Ref: %s\n", yytext+2);
221206 yylval.labelref = xstrdup(yytext+2);
222
- return DT_REF;
207
+ return DT_PATH_REF;
223208 }
224209
225210 <BYTESTRING>[0-9a-fA-F]{2} {