Skip to content

Commit bef0f00

Browse files
committed
headers: comments compliance with kernel code
Signed-off-by: <Michael Heltne michael.heltne@gmail.com>
1 parent c1e794c commit bef0f00

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

driver.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,12 @@ def generate_driver(p: Panel, options: Options) -> None:
468468
module = f"panel-{dash_id}"
469469
with open(f'{p.id}/{module}.c', 'w') as f:
470470
f.write(f'''\
471-
// SPDX-License-Identifier: GPL-2.0-only
472-
// Copyright (c) {datetime.date.today().year} FIXME
473-
// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
474-
// Copyright (c) 2013, The Linux Foundation. All rights reserved. (FIXME)
471+
/*
472+
* SPDX-License-Identifier: GPL-2.0-only
473+
* Copyright (c) {datetime.date.today().year} FIXME
474+
* Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
475+
* Copyright (c) 2013, The Linux Foundation. All rights reserved. (FIXME)
476+
*/
475477
{generate_includes(p, options)}
476478
477479
{generate_struct(p, options)}

lk.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,12 @@ def generate_lk_driver(p: Panel) -> None:
110110

111111
with open(f'{p.id}/lk_panel_{p.id}.h', 'w') as f:
112112
f.write(f'''\
113-
// SPDX-License-Identifier: GPL-2.0-only
114-
// Copyright (c) {datetime.date.today().year} FIXME
115-
// Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
116-
// Copyright (c) 2014, The Linux Foundation. All rights reserved. (FIXME)
117-
113+
/*
114+
* SPDX-License-Identifier: GPL-2.0-only
115+
* Copyright (c) {datetime.date.today().year} FIXME
116+
* Generated with linux-mdss-dsi-panel-driver-generator from vendor device tree:
117+
* Copyright (c) 2014, The Linux Foundation. All rights reserved. (FIXME)
118+
*/
118119
#ifndef {define}
119120
#define {define}
120121

0 commit comments

Comments
 (0)