Skip to content

Commit

Permalink
drm/arise: cbios: donot implicit truncation from 'int' to bit-field
Browse files Browse the repository at this point in the history
Fix follow compile error with clang-19:

drivers/gpu/drm/arise/cbios/Device/Monitor/EDPPanel/CBiosITN156.c:136:22: error: implicit truncation from 'int' to bit-field changes value from 2 to 0 [-Werror,-Wbitfield-constant-conversion]
  136 |         /*.Flags = */0x2,//backlight control = 0, use hard code link para
      |                      ^~~
1 error generated.

According to the comments, 'Flags' should be 0.

Signed-off-by: WangYuli <[email protected]>
  • Loading branch information
Avenger-285714 committed Nov 20, 2024
1 parent bf9703a commit 83cd424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ CBIOS_EDP_PANEL_DESC ITN156_Panel_Desc =
/*.LaneNum = */4,
/*.BacklightMax = */255,
/*.BacklightMin = */0,
/*.Flags = */0x2,//backlight control = 0, use hard code link para
/*.Flags = */0,//backlight control = 0, use hard code link para
},
/*.pFnEDPPanelInit = */INT156_Init,
/*.pFnEDPPanelDeInit = */INT156_DeInit,
Expand Down

0 comments on commit 83cd424

Please sign in to comment.