Commit 161b6736 authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: turn DSCUR() to a function

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f6b1428d
...@@ -267,7 +267,11 @@ static inline struct DSDefault *DSDEF(struct pp_instance *ppi) ...@@ -267,7 +267,11 @@ static inline struct DSDefault *DSDEF(struct pp_instance *ppi)
return ppi->defaultDS; return ppi->defaultDS;
} }
#define DSCUR(x) ((x)->currentDS) static inline struct DSCurrent *DSCUR(struct pp_instance *ppi)
{
return ppi->currentDS;
}
#define DSPAR(x) ((x)->parentDS) #define DSPAR(x) ((x)->parentDS)
#define DSPOR(x) ((x)->portDS) #define DSPOR(x) ((x)->portDS)
#define DSPRO(x) ((x)->timePropertiesDS) #define DSPRO(x) ((x)->timePropertiesDS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment