Commit 9040ecd
drm/rockchip: vop2: switch to FIELD_PREP_WM16 macro
The era of hand-rolled HIWORD_UPDATE macros is over, at least for those
drivers that use constant masks.
Remove VOP2's HIWORD_UPDATE macro from the vop2 header file, and replace
all instances in rockchip_vop2_reg.c (the only user of this particular
HIWORD_UPDATE definition) with equivalent FIELD_PREP_WM16 instances. This
gives us better error checking.
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Tested-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>1 parent 1a99efa commit 9040ecd
2 files changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | 37 | | |
39 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
1695 | 1696 | | |
1696 | 1697 | | |
1697 | 1698 | | |
1698 | | - | |
1699 | | - | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1700 | 1702 | | |
1701 | 1703 | | |
1702 | 1704 | | |
| |||
1707 | 1709 | | |
1708 | 1710 | | |
1709 | 1711 | | |
1710 | | - | |
1711 | | - | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
1712 | 1715 | | |
1713 | 1716 | | |
1714 | 1717 | | |
| |||
1718 | 1721 | | |
1719 | 1722 | | |
1720 | 1723 | | |
1721 | | - | |
| 1724 | + | |
1722 | 1725 | | |
1723 | 1726 | | |
1724 | 1727 | | |
| |||
1728 | 1731 | | |
1729 | 1732 | | |
1730 | 1733 | | |
1731 | | - | |
| 1734 | + | |
1732 | 1735 | | |
1733 | 1736 | | |
1734 | 1737 | | |
| |||
0 commit comments