Skip to content

Commit bbbb274

Browse files
committed
driver: Make backlight_properties const in create_backlight()
https://lore.kernel.org/dri-devel/[email protected]/ >> + struct backlight_properties props = { > const
1 parent 12616b2 commit bbbb274

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def generate_backlight(p: Panel, options: Options) -> str:
319319
{p.short_id}_create_backlight(struct mipi_dsi_device *dsi)
320320
{{
321321
struct device *dev = &dsi->dev;
322-
struct backlight_properties props = {{
322+
const struct backlight_properties props = {{
323323
.type = BACKLIGHT_RAW,
324324
.brightness = {p.max_brightness or 255},
325325
.max_brightness = {p.max_brightness or 255},

0 commit comments

Comments
 (0)