Commit 0003b8d2 authored by Masahiro Yamada's avatar Masahiro Yamada Committed by Sean Paul
Browse files

drm/radeon: squash lines for simple wrapper functions

parent d912adef
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -4193,11 +4193,7 @@ u32 cik_gfx_get_rptr(struct radeon_device *rdev,
u32 cik_gfx_get_wptr(struct radeon_device *rdev,
u32 cik_gfx_get_wptr(struct radeon_device *rdev,
		     struct radeon_ring *ring)
		     struct radeon_ring *ring)
{
{
	u32 wptr;
	return RREG32(CP_RB0_WPTR);

	wptr = RREG32(CP_RB0_WPTR);

	return wptr;
}
}


void cik_gfx_set_wptr(struct radeon_device *rdev,
void cik_gfx_set_wptr(struct radeon_device *rdev,
+1 −5
Original line number Original line Diff line number Diff line
@@ -1071,11 +1071,7 @@ u32 r100_gfx_get_rptr(struct radeon_device *rdev,
u32 r100_gfx_get_wptr(struct radeon_device *rdev,
u32 r100_gfx_get_wptr(struct radeon_device *rdev,
		      struct radeon_ring *ring)
		      struct radeon_ring *ring)
{
{
	u32 wptr;
	return RREG32(RADEON_CP_RB_WPTR);

	wptr = RREG32(RADEON_CP_RB_WPTR);

	return wptr;
}
}


void r100_gfx_set_wptr(struct radeon_device *rdev,
void r100_gfx_set_wptr(struct radeon_device *rdev,
+1 −5
Original line number Original line Diff line number Diff line
@@ -2631,11 +2631,7 @@ u32 r600_gfx_get_rptr(struct radeon_device *rdev,
u32 r600_gfx_get_wptr(struct radeon_device *rdev,
u32 r600_gfx_get_wptr(struct radeon_device *rdev,
		      struct radeon_ring *ring)
		      struct radeon_ring *ring)
{
{
	u32 wptr;
	return RREG32(R600_CP_RB_WPTR);

	wptr = RREG32(R600_CP_RB_WPTR);

	return wptr;
}
}


void r600_gfx_set_wptr(struct radeon_device *rdev,
void r600_gfx_set_wptr(struct radeon_device *rdev,