Commit 14b02f02 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Greg Kroah-Hartman
Browse files

usb: typec: tipd: Separate file for tracepoint creation

parent 2786d861
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
CFLAGS_tps6598x.o		:= -I$(src)
CFLAGS_trace.o			:= -I$(src)

obj-$(CONFIG_TYPEC_TPS6598X)	+= tps6598x.o
tps6598x-y			:= core.o
tps6598x-$(CONFIG_TRACING)	+= trace.o
+2 −4
Original line number Diff line number Diff line
@@ -6,8 +6,6 @@
 * Author: Heikki Krogerus <heikki.krogerus@linux.intel.com>
 */

#include "tps6598x.h"

#include <linux/i2c.h>
#include <linux/acpi.h>
#include <linux/module.h>
@@ -17,8 +15,8 @@
#include <linux/usb/typec.h>
#include <linux/usb/role.h>

#define CREATE_TRACE_POINTS
#include "tps6598x_trace.h"
#include "tps6598x.h"
#include "trace.h"

/* Register offsets */
#define TPS_REG_VID			0x00
+9 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0
/*
 * TI TPS6598x USB Power Delivery Controller Trace Support
 *
 * Copyright (C) 2021, Intel Corporation
 * Author: Heikki Krogerus <heikki.krogerus@linux.intel.com>
 */
#define CREATE_TRACE_POINTS
#include "trace.h"
+1 −1
Original line number Diff line number Diff line
@@ -277,7 +277,7 @@ TRACE_EVENT(tps6598x_data_status,

/* This part must be outside protection */
#undef TRACE_INCLUDE_FILE
#define TRACE_INCLUDE_FILE tps6598x_trace
#define TRACE_INCLUDE_FILE trace
#undef TRACE_INCLUDE_PATH
#define TRACE_INCLUDE_PATH .
#include <trace/define_trace.h>