[tables] Incorporate table data type information into table definition
Eliminate the potential for mismatches between table names and the table entry data type by incorporating the data type into the definition of the table, rather than specifying it explicitly in each table accessor method.
This commit is contained in:
@@ -59,10 +59,10 @@ struct isa_driver {
|
||||
};
|
||||
|
||||
/** ISA driver table */
|
||||
#define ISA_DRIVERS "isa_drivers"
|
||||
#define ISA_DRIVERS __table ( struct isa_driver, "isa_drivers" )
|
||||
|
||||
/** Declare an ISA driver */
|
||||
#define __isa_driver __table ( struct isa_driver, ISA_DRIVERS, 01 )
|
||||
#define __isa_driver __table_entry ( ISA_DRIVERS, 01 )
|
||||
|
||||
/**
|
||||
* Set ISA driver-private data
|
||||
|
||||
Reference in New Issue
Block a user