All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] drm/omap: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
@ 2014-07-01 18:52 Fabian Frederick
  2014-08-26 12:31   ` Tomi Valkeinen
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Frederick @ 2014-07-01 18:52 UTC (permalink / raw)
  To: linux-kernel; +Cc: Fabian Frederick, David Airlie, Tomi Valkeinen, dri-devel

use mm.h definition

Cc: David Airlie <airlied@linux.ie>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c
index 1388ca7..8068612 100644
--- a/drivers/gpu/drm/omapdrm/omap_fbdev.c
+++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c
@@ -169,7 +169,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
 	fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled;
 	if (fbdev->ywrap_enabled) {
 		/* need to align pitch to page size if using DMM scrolling */
-		mode_cmd.pitches[0] = ALIGN(mode_cmd.pitches[0], PAGE_SIZE);
+		mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]);
 	}
 
 	/* allocate backing bo */
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] drm/omap: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
  2014-07-01 18:52 [PATCH 1/1] drm/omap: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN Fabian Frederick
@ 2014-08-26 12:31   ` Tomi Valkeinen
  0 siblings, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2014-08-26 12:31 UTC (permalink / raw)
  To: Fabian Frederick, linux-kernel; +Cc: David Airlie, dri-devel

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

On 01/07/14 21:52, Fabian Frederick wrote:
> use mm.h definition
> 
> Cc: David Airlie <airlied@linux.ie>
> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: dri-devel@lists.freedesktop.org
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
>  drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> index 1388ca7..8068612 100644
> --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c
> +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> @@ -169,7 +169,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
>  	fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled;
>  	if (fbdev->ywrap_enabled) {
>  		/* need to align pitch to page size if using DMM scrolling */
> -		mode_cmd.pitches[0] = ALIGN(mode_cmd.pitches[0], PAGE_SIZE);
> +		mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]);
>  	}
>  
>  	/* allocate backing bo */
> 

Thanks, queued for v3.18.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] drm/omap: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN
@ 2014-08-26 12:31   ` Tomi Valkeinen
  0 siblings, 0 replies; 3+ messages in thread
From: Tomi Valkeinen @ 2014-08-26 12:31 UTC (permalink / raw)
  To: Fabian Frederick, linux-kernel; +Cc: David Airlie, dri-devel

[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]

On 01/07/14 21:52, Fabian Frederick wrote:
> use mm.h definition
> 
> Cc: David Airlie <airlied@linux.ie>
> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> Cc: dri-devel@lists.freedesktop.org
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
> ---
>  drivers/gpu/drm/omapdrm/omap_fbdev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/omapdrm/omap_fbdev.c b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> index 1388ca7..8068612 100644
> --- a/drivers/gpu/drm/omapdrm/omap_fbdev.c
> +++ b/drivers/gpu/drm/omapdrm/omap_fbdev.c
> @@ -169,7 +169,7 @@ static int omap_fbdev_create(struct drm_fb_helper *helper,
>  	fbdev->ywrap_enabled = priv->has_dmm && ywrap_enabled;
>  	if (fbdev->ywrap_enabled) {
>  		/* need to align pitch to page size if using DMM scrolling */
> -		mode_cmd.pitches[0] = ALIGN(mode_cmd.pitches[0], PAGE_SIZE);
> +		mode_cmd.pitches[0] = PAGE_ALIGN(mode_cmd.pitches[0]);
>  	}
>  
>  	/* allocate backing bo */
> 

Thanks, queued for v3.18.

 Tomi



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-08-26 12:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-01 18:52 [PATCH 1/1] drm/omap: replace ALIGN(PAGE_SIZE) by PAGE_ALIGN Fabian Frederick
2014-08-26 12:31 ` Tomi Valkeinen
2014-08-26 12:31   ` Tomi Valkeinen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.