Star64_linux/drivers/gpu/drm
Ville Syrjälä bd2ef25d92 drm: Add drm_rotation_90_or_270()
We have intel_rotation_90_or_270() in i915 to check if the rotation is
90 or 270 degrees. Similar checks are elsewhere in drm, so let's move
the helper into a central place and use it everwhere.

v2: Drop the BIT()
    Convert all new intel_rotation_90_or_270() calls
    Deal with superfluous code shuffling

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474907460-10717-2-git-send-email-ville.syrjala@linux.intel.com
2016-10-21 18:21:33 +02:00
..
amd drm: amdgpu: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:22:49 +05:30
arc
arm drm/arm: mali-dp: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:23:59 +05:30
armada
ast
atmel-hlcdc drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
bochs
bridge
cirrus drm: cirrus: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:22:06 +05:30
etnaviv
exynos drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
fsl-dcu
gma500 drm: gma500: Replace drm_fb_get_bpp_depth() with drm_format_info() 2016-10-18 15:22:38 +05:30
hisilicon
i2c
i810
i915 drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
imx
mediatek drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
mga
mgag200
msm drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
nouveau
omapdrm drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
panel
qxl
r128
radeon drm: radeon: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:23:44 +05:30
rcar-du drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
rockchip gpu: Remove depends on RESET_CONTROLLER when not a provider 2016-10-19 09:26:15 +02:00
savage
shmobile
sis
sti drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
sun4i
tdfx
tegra gpu: Remove depends on RESET_CONTROLLER when not a provider 2016-10-19 09:26:15 +02:00
tilcdc drm: tilcdc: Replace drm_fb_get_bpp_depth() with drm_format_plane_cpp() 2016-10-18 15:21:57 +05:30
ttm
udl
vc4 drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
vgem
via
virtio drm/virtio: kconfig: Fixup white space. 2016-10-21 10:49:06 -04:00
vmwgfx drm: vmwgfx: Replace drm_fb_get_bpp_depth() with drm_format_info() 2016-10-18 15:23:53 +05:30
ati_pcigart.c
drm_agpsupport.c
drm_atomic.c drm: Add reference counting to drm_atomic_state 2016-10-17 08:19:57 +02:00
drm_atomic_helper.c drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
drm_auth.c
drm_blend.c
drm_bridge.c
drm_bufs.c
drm_cache.c
drm_color_mgmt.c
drm_connector.c
drm_context.c
drm_crtc.c drm: Add drm_rotation_90_or_270() 2016-10-21 18:21:33 +02:00
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_debugfs.c drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00
drm_debugfs_crc.c drm: fix sparse warnings on undeclared symbols in crc debugfs 2016-10-19 14:10:29 +03:00
drm_dma.c
drm_dp_aux_dev.c
drm_dp_dual_mode_helper.c
drm_dp_helper.c
drm_dp_mst_topology.c
drm_drv.c
drm_edid.c drm/edid: Use block local to refer to the block 2016-10-17 14:28:06 +02:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c drm/fb_cma_helper: do not free fbdev if there is none 2016-10-20 09:05:34 +02:00
drm_fb_helper.c drm/fb-helper: reject any changes to the fbdev 2016-10-17 16:42:41 +02:00
drm_flip_work.c
drm_fops.c drm/fence: release fence reference when canceling event 2016-10-21 15:35:07 +02:00
drm_fourcc.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_framebuffer.c drm: WARN when calling drm_format_info() for an unsupported format 2016-10-18 15:21:38 +05:30
drm_gem.c
drm_gem_cma_helper.c
drm_global.c
drm_hashtab.c
drm_info.c
drm_internal.h drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00
drm_ioc32.c
drm_ioctl.c
drm_irq.c drm: avoid uninitialized timestamp use in wait_vblank 2016-10-18 09:45:17 +02:00
drm_kms_helper_common.c
drm_legacy.h
drm_lock.c
drm_memory.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_object.c
drm_modes.c drm: Add and handle new aspect ratios in DRM layer 2016-10-17 14:23:58 +02:00
drm_modeset_helper.c drm: Don't export the drm_fb_get_bpp_depth() function 2016-10-18 15:24:08 +05:30
drm_modeset_lock.c
drm_of.c
drm_panel.c
drm_pci.c
drm_plane.c
drm_plane_helper.c
drm_platform.c
drm_prime.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_simple_kms_helper.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vm.c
drm_vma_manager.c
Kconfig
Makefile drm: Add API for capturing frame CRCs 2016-10-17 16:44:34 +02:00