diff options
author | AngeloGioacchino Del Regno <[email protected]> | 2024-02-15 09:53:11 +0100 |
---|---|---|
committer | Chun-Kuang Hu <[email protected]> | 2024-02-19 14:42:01 +0000 |
commit | aaeb9335fb38c8d3f746e0fb06d4c7ae90985714 (patch) | |
tree | be3f95fe73933b9f4f313b13b8ca4a0876e8bec3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5c6186a8f07e89f769d99c522cae78a121277b2d (diff) |
drm/mediatek: dsi: Use bitfield macros where useful
Instead of open coding bitshifting for various register fields,
use the bitfield macro FIELD_PREP(): this allows to enhance the
human readability, decrease likeliness of mistakes (and register
field overflowing) and also to simplify the code.
The latter is especially seen in mtk_dsi_rxtx_control(), where
it was possible to change a switch to a short for loop and to
also remove the need to check for maximum DSI lanes == 4 thanks
to the FIELD_PREP macro masking the value.
While at it, also add the missing DA_HS_SYNC bitmask, used in
mtk_dsi_phy_timconfig().
Reviewed-by: Alexandre Mergnat <[email protected]>
Reviewed-by: CK Hu <[email protected]>
Signed-off-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions