Skip to content

Commit

Permalink
fix crash dump on eager led setting
Browse files Browse the repository at this point in the history
  • Loading branch information
paolosabatino authored and igorpecovnik committed Nov 14, 2024
1 parent 96fbd4a commit eec2c2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -987,6 +987,10 @@ index 000000000000..111111111111
+ return ret;
+ }
+
+ mutex_init(&display->lock);
+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness);
+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data);
+
+ display->main_led.name = TM16XX_DEVICE_NAME;
+ display->main_led.brightness = display->controller->max_brightness;
+ display->main_led.max_brightness = display->controller->max_brightness;
Expand Down Expand Up @@ -1036,10 +1040,6 @@ index 000000000000..111111111111
+ i++;
+ }
+
+ mutex_init(&display->lock);
+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness);
+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data);
+
+ ret = tm16xx_display_init(display);
+ if (ret < 0) {
+ dev_err(display->dev, "Failed to initialize display: %d\n", ret);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,10 @@ index 000000000000..d938b0166e74
+ return ret;
+ }
+
+ mutex_init(&display->lock);
+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness);
+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data);
+
+ display->main_led.name = TM16XX_DEVICE_NAME;
+ display->main_led.brightness = display->controller->max_brightness;
+ display->main_led.max_brightness = display->controller->max_brightness;
Expand Down Expand Up @@ -1037,10 +1041,6 @@ index 000000000000..d938b0166e74
+ i++;
+ }
+
+ mutex_init(&display->lock);
+ INIT_WORK(&display->flush_brightness, tm16xx_display_flush_brightness);
+ INIT_WORK(&display->flush_display, tm16xx_display_flush_data);
+
+ ret = tm16xx_display_init(display);
+ if (ret < 0) {
+ dev_err(display->dev, "Failed to initialize display: %d\n", ret);
Expand Down

0 comments on commit eec2c2b

Please sign in to comment.