Skip to contentSkip to conversation

Include support for dev_xxx macros

PATCH New Gireesh.Hiremath at in.bosch.com 2 participants 2 messages Jan 6, 2021 – Jan 17, 2021 Framebuffer layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Include support for dev_xxx macros

From: Gireesh Hiremath <[email protected]>

Now that linux/compat.h does not define dev_xxx macros, we need to include dm/device_compat.h to use dev_xxx macros

---
 drivers/video/am335x-fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/am335x-fb.c +1 -0
index f4ccdc3b05..e802b3bb83 100644
@@ -13,6 +13,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <lcd.h>
 #include <log.h>
 #include <video.h>
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 Include support for dev_xxx macros

Hi,

Quoted 6 lines · Gireesh.Hiremath at in.bosch.com

From: Gireesh Hiremath <[email protected]>

Now that linux/compat.h does not define dev_xxx macros, we need to include dm/device_compat.h to use dev_xxx macros

I did not get the complete intention of this patch. Are there any build warnings that are fixed with including the relevant #include. If not this patch should be squashed with the patch that introduces the usage of dev_xxx macros.

Thanks and regards,
Lokesh

Quoted 17 lines
---
 drivers/video/am335x-fb.c | 1 +
 1 file changed, 1 insertion(+)
drivers/video/am335x-fb.c +1 -0
index f4ccdc3b05..e802b3bb83 100644
@@ -13,6 +13,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <lcd.h>
 #include <log.h>
 #include <video.h>