[rtems commit] grlib: Remove unused conversion macros

Sebastian Huber sebh at rtems.org
Fri Oct 16 05:13:19 UTC 2020


Module:    rtems
Branch:    master
Commit:    c15c520b96363966c0087a997ea6db10f52451f4
Changeset: http://git.rtems.org/rtems/commit/?id=c15c520b96363966c0087a997ea6db10f52451f4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Sep 18 10:00:45 2020 +0200

grlib: Remove unused conversion macros

---

 bsps/include/grlib/ambapp.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/bsps/include/grlib/ambapp.h b/bsps/include/grlib/ambapp.h
index 2ad6671..9202669 100644
--- a/bsps/include/grlib/ambapp.h
+++ b/bsps/include/grlib/ambapp.h
@@ -56,11 +56,6 @@ struct ambapp_dev {
 #define DEV_TO_APB(adev) ((struct ambapp_apb_info *)((adev)->devinfo))
 #define DEV_TO_AHB(adev) ((struct ambapp_ahb_info *)((adev)->devinfo))
 #define DEV_TO_COMMON(adev) ((struct ambapp_common_info *)((adev)->devinfo))
-/* Convert address of ambapp_apb_info/ambapp_ahb_info into ambapp_dev */
-#define APB_TO_DEV(apb_info) ((struct ambapp_dev *)(unsigned int(apb_info) - \
-				offsetof(struct ambapp_dev, devinfo)))
-#define AHB_TO_DEV(ahb_info) ((struct ambapp_dev *)(unsigned int(ahb_info) - \
-				offsetof(struct ambapp_dev, devinfo)))
 
 struct ambapp_common_info {
 	unsigned char irq;



More information about the vc mailing list