Simplify file.write()

This commit is contained in:
Ken Van Hoeylandt 2026-02-06 15:03:47 +01:00
parent 096a04201c
commit adef122b00

View File

@ -134,7 +134,7 @@ def write_device_structs(file, device: Device, parent_device: Device, bindings:
file.write(f"\t.name = \"{device.node_name}\",\n") # Use original name
file.write(f"\t.config = &{config_variable_name},\n")
file.write(f"\t.parent = {parent_value},\n")
file.write(f"\t.internal = NULL\n")
file.write("\t.internal = NULL\n")
file.write("};\n\n")
# Child devices
for child_device in device.devices: