aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h8
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c14
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 6a8129949333..7b4f808afff9 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1910,10 +1910,10 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon);
1910u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe); 1910u32 amdgpu_get_vblank_counter_kms(struct drm_device *dev, unsigned int pipe);
1911int amdgpu_enable_vblank_kms(struct drm_device *dev, unsigned int pipe); 1911int amdgpu_enable_vblank_kms(struct drm_device *dev, unsigned int pipe);
1912void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe); 1912void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe);
1913int amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe, 1913bool amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe,
1914 int *max_error, 1914 int *max_error,
1915 struct timeval *vblank_time, 1915 struct timeval *vblank_time,
1916 unsigned flags); 1916 unsigned flags);
1917long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, 1917long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd,
1918 unsigned long arg); 1918 unsigned long arg);
1919 1919
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index 832be632478f..a1b97809305e 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -945,19 +945,19 @@ void amdgpu_disable_vblank_kms(struct drm_device *dev, unsigned int pipe)
945 * 945 *
946 * Gets the timestamp on the requested crtc based on the 946 * Gets the timestamp on the requested crtc based on the
947 * scanout position. (all asics). 947 * scanout position. (all asics).
948 * Returns postive status flags on success, negative error on failure. 948 * Returns true on success, false on failure.
949 */ 949 */
950int amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe, 950bool amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe,
951 int *max_error, 951 int *max_error,
952 struct timeval *vblank_time, 952 struct timeval *vblank_time,
953 unsigned flags) 953 unsigned flags)
954{ 954{
955 struct drm_crtc *crtc; 955 struct drm_crtc *crtc;
956 struct amdgpu_device *adev = dev->dev_private; 956 struct amdgpu_device *adev = dev->dev_private;
957 957
958 if (pipe >= dev->num_crtcs) { 958 if (pipe >= dev->num_crtcs) {
959 DRM_ERROR("Invalid crtc %u\n", pipe); 959 DRM_ERROR("Invalid crtc %u\n", pipe);
960 return -EINVAL; 960 return false;
961 } 961 }
962 962
963 /* Get associated drm_crtc: */ 963 /* Get associated drm_crtc: */
@@ -966,7 +966,7 @@ int amdgpu_get_vblank_timestamp_kms(struct drm_device *dev, unsigned int pipe,
966 /* This can occur on driver load if some component fails to 966 /* This can occur on driver load if some component fails to
967 * initialize completely and driver is unloaded */ 967 * initialize completely and driver is unloaded */
968 DRM_ERROR("Uninitialized crtc %d\n", pipe); 968 DRM_ERROR("Uninitialized crtc %d\n", pipe);
969 return -EINVAL; 969 return false;
970 } 970 }
971 971
972 /* Helper routine in DRM core does all the work: */ 972 /* Helper routine in DRM core does all the work: */