Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm: renesas: rz-du: mipi_dsi: Convert to FIELD_MODIFY()

Use the FIELD_MODIFY() helper instead of open-coding the same operation.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://patch.msgid.link/da7709d50894d422442401e6e3ff4c4715a33fa5.1772705564.git.geert+renesas@glider.be
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>

authored by

Geert Uytterhoeven and committed by
Biju Das
ba683f77 ece3e898

+1 -2
+1 -2
drivers/gpu/drm/renesas/rz-du/rzg2l_mipi_dsi.c
··· 808 808 * commands payload not being saved to memory. 809 809 */ 810 810 dsisetr = rzg2l_mipi_dsi_link_read(dsi, DSISETR); 811 - dsisetr &= ~DSISETR_MRPSZ; 812 - dsisetr |= FIELD_PREP(DSISETR_MRPSZ, RZG2L_DCS_BUF_SIZE); 811 + FIELD_MODIFY(DSISETR_MRPSZ, &dsisetr, RZG2L_DCS_BUF_SIZE); 813 812 rzg2l_mipi_dsi_link_write(dsi, DSISETR, dsisetr); 814 813 815 814 return 0;