Skip to contentSkip to conversation

drm/hisilicon: Delete the unused macro

PATCH In review Tian Tao 3 participants 3 messages Sep 29, 2020

Subsystems (3)
lore
Share & tools
lore

Tian Tao

author maintainer
#0 lore raw

PATCH 1/1 drm/hisilicon: Delete the unused macro

The macro PADDING is no longer used. Delete it.

---
 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +0 -2
index 4d57ec6..b3a81da 100644
@@ -52,8 +52,6 @@ static const struct hibmc_dislay_pll_config hibmc_pll_table[] = {
 	{1920, 1200, CRT_PLL1_HS_193MHZ, CRT_PLL2_HS_193MHZ},
 };
 
-#define PADDING(align, data) (((data) + (align) - 1) & (~((align) - 1)))
-
 static int hibmc_plane_atomic_check(struct drm_plane *plane,
 				    struct drm_plane_state *state)
 {
Signature · 1 line
2.7.4
maintainer Reviewed-by on v1 1/1
#1 lore raw

Am 29.09.20 um 02:45 schrieb Tian Tao:

Quoted 3 lines

The macro PADDING is no longer used. Delete it.

Quoted 18 lines
---
 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +0 -2
index 4d57ec6..b3a81da 100644
@@ -52,8 +52,6 @@ static const struct hibmc_dislay_pll_config hibmc_pll_table[] = {
 	{1920, 1200, CRT_PLL1_HS_193MHZ, CRT_PLL2_HS_193MHZ},
 };
 
-#define PADDING(align, data) (((data) + (align) - 1) & (~((align) - 1)))
-
 static int hibmc_plane_atomic_check(struct drm_plane *plane,
 				    struct drm_plane_state *state)
 {
Signature · 6 lines
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
Quoted 9 lines · Thomas Zimmermann

Am 29.09.20 um 02:45 schrieb Tian Tao:

Quoted 3 lines

The macro PADDING is no longer used. Delete it.

Thanks a lot for the timely help with the review code!

Quoted 19 lines
Quoted 18 lines
---
  drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 2 --
  1 file changed, 2 deletions(-)
drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c +0 -2
index 4d57ec6..b3a81da 100644
@@ -52,8 +52,6 @@ static const struct hibmc_dislay_pll_config hibmc_pll_table[] = {
  	{1920, 1200, CRT_PLL1_HS_193MHZ, CRT_PLL2_HS_193MHZ},
  };
 
-#define PADDING(align, data) (((data) + (align) - 1) & (~((align) - 1)))
-
  static int hibmc_plane_atomic_check(struct drm_plane *plane,
  				    struct drm_plane_state *state)
  {