Skip to content

Commit

Permalink
staging: csr: remove CsrOffSetOf()
Browse files Browse the repository at this point in the history
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Jul 20, 2012
1 parent 2c92e28 commit df73850
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 107 deletions.
11 changes: 0 additions & 11 deletions drivers/staging/csr/csr_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading

0 comments on commit df73850

Please sign in to comment.