phy: mediatek: hdmi: mt2701: use FIELD_PREP to prepare bits field
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Tue, 20 Sep 2022 09:00:27 +0000 (17:00 +0800)
committerVinod Koul <vkoul@kernel.org>
Sat, 24 Sep 2022 06:27:50 +0000 (11:57 +0530)
commita98d935eacc75a6e956045bdef91c7c2dad729f6
tree09dc456c5da3c02ca9aabd6467a3a0cdae296da6
parentb0870c0151440121e78586c7681c5599a1e4eba8
phy: mediatek: hdmi: mt2701: use FIELD_PREP to prepare bits field

Use FIELD_PREP() macro to prepare bits field value, then no need define
macros of bits offset.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20220920090038.15133-8-chunfeng.yun@mediatek.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c