isimodem: Add helper macro for version checking

This commit is contained in:
Aki Niemi 2011-04-11 18:01:28 +03:00
parent 61df8b3474
commit 638b55f584
1 changed files with 4 additions and 0 deletions

View File

@ -67,4 +67,8 @@ static inline struct isi_cb_data *isi_cb_data_new(void *user, void *cb,
#define ALIGN4(val) (((val) + 3) & ~3)
#define ISI_VERSION_AT_LEAST(ver,maj,min) \
((ver) != NULL && ((ver)->major > (maj) || \
((ver)->major == (maj) && (ver)->minor >= (min))))
#endif /* !__ISIMODEM_UTIL_H */