Patchwork drm/exynos: g2d: drop the _REG postfix from the stride defines

login
register
mail settings
Submitter Tobias Jakobi
Date May 25, 2016, 12:42 p.m.
Message ID <1464180176-10463-1-git-send-email-tjakobi@math.uni-bielefeld.de>
Download mbox | patch
Permalink /patch/9135279/
State New
Headers show

Comments

Tobias Jakobi - May 25, 2016, 12:42 p.m.
This makes the defines consistent with the rest.

Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
---
 drivers/gpu/drm/exynos/exynos_drm_g2d.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
Tobias Jakobi - June 10, 2016, 10:12 a.m.
Ping!

- Tobias

Tobias Jakobi wrote:
> This makes the defines consistent with the rest.
> 
> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
> ---
>  drivers/gpu/drm/exynos/exynos_drm_g2d.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> index 01b72b9..0934d38 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
> @@ -48,13 +48,13 @@
>  
>  /* registers for base address */
>  #define G2D_SRC_BASE_ADDR		0x0304
> -#define G2D_SRC_STRIDE_REG		0x0308
> +#define G2D_SRC_STRIDE			0x0308
>  #define G2D_SRC_COLOR_MODE		0x030C
>  #define G2D_SRC_LEFT_TOP		0x0310
>  #define G2D_SRC_RIGHT_BOTTOM		0x0314
>  #define G2D_SRC_PLANE2_BASE_ADDR	0x0318
>  #define G2D_DST_BASE_ADDR		0x0404
> -#define G2D_DST_STRIDE_REG		0x0408
> +#define G2D_DST_STRIDE			0x0408
>  #define G2D_DST_COLOR_MODE		0x040C
>  #define G2D_DST_LEFT_TOP		0x0410
>  #define G2D_DST_RIGHT_BOTTOM		0x0414
> @@ -560,7 +560,7 @@ static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
>  
>  	switch (reg_offset) {
>  	case G2D_SRC_BASE_ADDR:
> -	case G2D_SRC_STRIDE_REG:
> +	case G2D_SRC_STRIDE:
>  	case G2D_SRC_COLOR_MODE:
>  	case G2D_SRC_LEFT_TOP:
>  	case G2D_SRC_RIGHT_BOTTOM:
> @@ -570,7 +570,7 @@ static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
>  		reg_type = REG_TYPE_SRC_PLANE2;
>  		break;
>  	case G2D_DST_BASE_ADDR:
> -	case G2D_DST_STRIDE_REG:
> +	case G2D_DST_STRIDE:
>  	case G2D_DST_COLOR_MODE:
>  	case G2D_DST_LEFT_TOP:
>  	case G2D_DST_RIGHT_BOTTOM:
> @@ -961,8 +961,8 @@ static int g2d_check_reg_offset(struct device *dev,
>  			} else
>  				buf_info->types[reg_type] = BUF_TYPE_GEM;
>  			break;
> -		case G2D_SRC_STRIDE_REG:
> -		case G2D_DST_STRIDE_REG:
> +		case G2D_SRC_STRIDE:
> +		case G2D_DST_STRIDE:
>  			if (for_addr)
>  				goto err;
>  
>
Inki Dae - June 13, 2016, 1:34 a.m.
Picked it up.

Thanks,
Inki Dae

2016년 06월 10일 19:12에 Tobias Jakobi 이(가) 쓴 글:
> Ping!
> 
> - Tobias
> 
> Tobias Jakobi wrote:
>> This makes the defines consistent with the rest.
>>
>> Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
>> ---
>>  drivers/gpu/drm/exynos/exynos_drm_g2d.c | 12 ++++++------
>>  1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
>> index 01b72b9..0934d38 100644
>> --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
>> +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
>> @@ -48,13 +48,13 @@
>>  
>>  /* registers for base address */
>>  #define G2D_SRC_BASE_ADDR		0x0304
>> -#define G2D_SRC_STRIDE_REG		0x0308
>> +#define G2D_SRC_STRIDE			0x0308
>>  #define G2D_SRC_COLOR_MODE		0x030C
>>  #define G2D_SRC_LEFT_TOP		0x0310
>>  #define G2D_SRC_RIGHT_BOTTOM		0x0314
>>  #define G2D_SRC_PLANE2_BASE_ADDR	0x0318
>>  #define G2D_DST_BASE_ADDR		0x0404
>> -#define G2D_DST_STRIDE_REG		0x0408
>> +#define G2D_DST_STRIDE			0x0408
>>  #define G2D_DST_COLOR_MODE		0x040C
>>  #define G2D_DST_LEFT_TOP		0x0410
>>  #define G2D_DST_RIGHT_BOTTOM		0x0414
>> @@ -560,7 +560,7 @@ static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
>>  
>>  	switch (reg_offset) {
>>  	case G2D_SRC_BASE_ADDR:
>> -	case G2D_SRC_STRIDE_REG:
>> +	case G2D_SRC_STRIDE:
>>  	case G2D_SRC_COLOR_MODE:
>>  	case G2D_SRC_LEFT_TOP:
>>  	case G2D_SRC_RIGHT_BOTTOM:
>> @@ -570,7 +570,7 @@ static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
>>  		reg_type = REG_TYPE_SRC_PLANE2;
>>  		break;
>>  	case G2D_DST_BASE_ADDR:
>> -	case G2D_DST_STRIDE_REG:
>> +	case G2D_DST_STRIDE:
>>  	case G2D_DST_COLOR_MODE:
>>  	case G2D_DST_LEFT_TOP:
>>  	case G2D_DST_RIGHT_BOTTOM:
>> @@ -961,8 +961,8 @@ static int g2d_check_reg_offset(struct device *dev,
>>  			} else
>>  				buf_info->types[reg_type] = BUF_TYPE_GEM;
>>  			break;
>> -		case G2D_SRC_STRIDE_REG:
>> -		case G2D_DST_STRIDE_REG:
>> +		case G2D_SRC_STRIDE:
>> +		case G2D_DST_STRIDE:
>>  			if (for_addr)
>>  				goto err;
>>  
>>
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
>

Patch

diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
index 01b72b9..0934d38 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c
@@ -48,13 +48,13 @@ 
 
 /* registers for base address */
 #define G2D_SRC_BASE_ADDR		0x0304
-#define G2D_SRC_STRIDE_REG		0x0308
+#define G2D_SRC_STRIDE			0x0308
 #define G2D_SRC_COLOR_MODE		0x030C
 #define G2D_SRC_LEFT_TOP		0x0310
 #define G2D_SRC_RIGHT_BOTTOM		0x0314
 #define G2D_SRC_PLANE2_BASE_ADDR	0x0318
 #define G2D_DST_BASE_ADDR		0x0404
-#define G2D_DST_STRIDE_REG		0x0408
+#define G2D_DST_STRIDE			0x0408
 #define G2D_DST_COLOR_MODE		0x040C
 #define G2D_DST_LEFT_TOP		0x0410
 #define G2D_DST_RIGHT_BOTTOM		0x0414
@@ -560,7 +560,7 @@  static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
 
 	switch (reg_offset) {
 	case G2D_SRC_BASE_ADDR:
-	case G2D_SRC_STRIDE_REG:
+	case G2D_SRC_STRIDE:
 	case G2D_SRC_COLOR_MODE:
 	case G2D_SRC_LEFT_TOP:
 	case G2D_SRC_RIGHT_BOTTOM:
@@ -570,7 +570,7 @@  static enum g2d_reg_type g2d_get_reg_type(int reg_offset)
 		reg_type = REG_TYPE_SRC_PLANE2;
 		break;
 	case G2D_DST_BASE_ADDR:
-	case G2D_DST_STRIDE_REG:
+	case G2D_DST_STRIDE:
 	case G2D_DST_COLOR_MODE:
 	case G2D_DST_LEFT_TOP:
 	case G2D_DST_RIGHT_BOTTOM:
@@ -961,8 +961,8 @@  static int g2d_check_reg_offset(struct device *dev,
 			} else
 				buf_info->types[reg_type] = BUF_TYPE_GEM;
 			break;
-		case G2D_SRC_STRIDE_REG:
-		case G2D_DST_STRIDE_REG:
+		case G2D_SRC_STRIDE:
+		case G2D_DST_STRIDE:
 			if (for_addr)
 				goto err;