OpenCloudOS-Kernel/drivers/gpu/drm/via
Sam Ravnborg 3bf2a06e36 drm/via: drop use of DRM(READ|WRITE) macros
The DRM_READ, DRM_WRITE macros comes from the deprecated drm_os_linux.h
header file. Remove their use to remove this dependency.

Replace the use of the macros with static inline variants.

v4:
- Use a more standard via_write8_mask() function (Emil)

v3:
- Use static inline functions, rather than macros (Emil)
- Use dedicated mask variants for byte access (Emil)

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Cc: Kevin Brace <kevinbrace@gmx.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Cc: "Gustavo A. R. Silva" <gustavo@embeddedor.com>
Cc: Mike Marshall <hubcap@omnibond.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Michel Dänzer <michel@daenzer.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20190723200944.17285-2-sam@ravnborg.org
2019-07-25 17:33:38 +02:00
..
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
via_3d_reg.h
via_dma.c drm/via: drop use of DRM(READ|WRITE) macros 2019-07-25 17:33:38 +02:00
via_dmablit.c drm/via: drop use of DRM(READ|WRITE) macros 2019-07-25 17:33:38 +02:00
via_dmablit.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_drv.c drm/irq: Ditch DRIVER_IRQ_SHARED 2019-01-29 15:45:21 +01:00
via_drv.h drm/via: drop use of DRM(READ|WRITE) macros 2019-07-25 17:33:38 +02:00
via_irq.c drm/via: drop use of DRM(READ|WRITE) macros 2019-07-25 17:33:38 +02:00
via_map.c drm: Change the return type of the unload hook to void 2017-01-09 11:25:22 +01:00
via_mm.c drm: Improve drm_mm search (and fix topdown allocation) with rbtrees 2017-02-03 11:10:32 +01:00
via_verifier.c drm/via: drop use of DRM(READ|WRITE) macros 2019-07-25 17:33:38 +02:00
via_verifier.h drm/via: fixed coding style issues, simplified return 2010-08-02 10:17:23 +10:00
via_video.c drm: Kill DRM_WAKUP and DRM_INIT_WAITQUEUE 2013-12-18 11:34:13 +10:00