Commit df738509 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

staging: csr: remove CsrOffSetOf()

It's really just offsetof, so call that instead.

Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c92e28e
......@@ -9,19 +9,8 @@
on the license terms.
*****************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
#include <linux/kernel.h>
#include <linux/types.h>
#include "csr_macro.h"
#define CsrOffsetOf(st, m) ((size_t) & ((st *) 0)->m)
#ifdef __cplusplus
}
#endif
#endif
This diff is collapsed.
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