diff options
author | Aki Niemi <aki.niemi@nokia.com> | 2011-03-02 17:33:39 +0200 |
---|---|---|
committer | Aki Niemi <aki.niemi@nokia.com> | 2011-03-03 17:43:29 +0200 |
commit | 39e155b65d8a5a94c5ba93ac65b7e02df878fd90 (patch) | |
tree | ab4cda9b65f8d77b07031f4a7411f83eff51cea1 | |
parent | b662bcc3645f5b793f5b8629389e295c39b88709 (diff) | |
download | ofono-39e155b65d8a5a94c5ba93ac65b7e02df878fd90.tar.bz2 |
isimodem: Add helper macro for 32bit alignment
-rw-r--r-- | drivers/isimodem/isiutil.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/isimodem/isiutil.h b/drivers/isimodem/isiutil.h index e0c9bf24..30e4ff72 100644 --- a/drivers/isimodem/isiutil.h +++ b/drivers/isimodem/isiutil.h @@ -65,4 +65,6 @@ static inline struct isi_cb_data *isi_cb_data_new(void *user, void *cb, g_isi_msg_version_major((msg)), \ g_isi_msg_version_minor((msg))); +#define ALIGN4(val) (((val) + 3) & ~3) + #endif /* !__ISIMODEM_UTIL_H */ |