Introduce PLATFORMMETHOD_END and use it.

This commit is contained in:
rpaulo 2013-02-13 02:21:45 +00:00
parent 58f911cb15
commit 5d56fc6ccd
5 changed files with 6 additions and 5 deletions

View File

@ -89,7 +89,7 @@ static platform_method_t bare_methods[] = {
PLATFORMMETHOD(platform_reset, booke_reset),
{ 0, 0 }
PLATFORMMETHOD_END
};
static platform_def_t bare_platform = {

View File

@ -81,7 +81,8 @@ typedef struct platform_kobj *platform_t;
typedef struct kobj_class platform_def_t;
#define platform_method_t kobj_method_t
#define PLATFORMMETHOD KOBJMETHOD
#define PLATFORMMETHOD KOBJMETHOD
#define PLATFORMMETHOD_END KOBJMETHOD_END
#define PLATFORM_DEF(name) DATA_SET(platform_set, name)

View File

@ -77,7 +77,7 @@ static platform_method_t powermac_methods[] = {
PLATFORMMETHOD(platform_reset, powermac_reset),
{ 0, 0 }
PLATFORMMETHOD_END
};
static platform_def_t powermac_platform = {

View File

@ -89,7 +89,7 @@ static platform_method_t ps3_methods[] = {
PLATFORMMETHOD(platform_reset, ps3_reset),
{ 0, 0 }
PLATFORMMETHOD_END
};
static platform_def_t ps3_platform = {

View File

@ -69,7 +69,7 @@ static platform_method_t wii_methods[] = {
PLATFORMMETHOD(platform_timebase_freq, wii_timebase_freq),
PLATFORMMETHOD(platform_reset, wii_reset),
{ 0, 0 }
PLATFORMMETHOD_END
};
static platform_def_t wii_platform = {