Skip to content

Commit

Permalink
Merge tag 'regmap-v4.1' of git://git.kernel.org/pub/scm/linux/kernel/…
Browse files Browse the repository at this point in the history
…git/broonie/regmap

Pull regmap update from Mark Brown:
 "Just one patch for regmap this time around, a change from Steven
  Rostedt to prettify the way we're making the regmap internal header
  available to the trace events (it turns out that the trace subsystem
  doesn't actually need to be in trace/events)"

* tag 'regmap-v4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap:
  regmap: Move tracing header into drivers/base/regmap
  • Loading branch information
torvalds committed Apr 13, 2015
2 parents 8d9095c + f58078d commit 1b57c7c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions drivers/base/regmap/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# For include/trace/define_trace.h to include trace.h
CFLAGS_regmap.o := -I$(src)

obj-$(CONFIG_REGMAP) += regmap.o regcache.o
obj-$(CONFIG_REGMAP) += regcache-rbtree.o regcache-lzo.o regcache-flat.o
obj-$(CONFIG_DEBUG_FS) += regmap-debugfs.o
Expand Down
2 changes: 1 addition & 1 deletion drivers/base/regmap/regcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#include <linux/export.h>
#include <linux/slab.h>
#include <linux/sort.h>
#include <trace/events/regmap.h>

#include "trace.h"
#include "internal.h"

static const struct regcache_ops *cache_types[] = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/base/regmap/regmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/sched.h>

#define CREATE_TRACE_POINTS
#include <trace/events/regmap.h>
#include "trace.h"

#include "internal.h"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <linux/ktime.h>
#include <linux/tracepoint.h>

#include "../../../drivers/base/regmap/internal.h"
#include "internal.h"

/*
* Log register events
Expand Down Expand Up @@ -247,5 +247,11 @@ TRACE_EVENT(regcache_drop_region,

#endif /* _TRACE_REGMAP_H */

#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .

#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE trace

/* This part must be outside protection */
#include <trace/define_trace.h>

0 comments on commit 1b57c7c

Please sign in to comment.