]> git.baikalelectronics.ru Git - kernel.git/commit
platform: chrome: Split trace include file
authorGwendal Grignou <gwendal@chromium.org>
Sat, 22 Jan 2022 00:13:01 +0000 (16:13 -0800)
committerBenson Leung <bleung@chromium.org>
Thu, 31 Mar 2022 23:56:29 +0000 (16:56 -0700)
commit3ba93bd17a953c9fb5094c8b91853dbdd752e8b7
tree1c4760442aaecfb179eb42abf1672e62a4dc86e5
parent2dd7edd2723e62ead7c5202688a48c36b5595edf
platform: chrome: Split trace include file

cros_ec_trace.h defined 5 tracing events, 2 for cros_ec_proto and
3 for cros_ec_sensorhub_ring.
These 2 files are in different kernel modules, the traces are defined
twice in the kernel which leads to problem enabling only some traces.

Move sensorhub traces from cros_ec_trace.h to cros_ec_sensorhub_trace.h
and enable them only in cros_ec_sensorhub kernel module.

Check we can now enable any single traces: without this patch,
we can only enable all sensorhub traces or none.

Fixes: eaf7d5962271 ("platform/chrome: sensorhub: Add trace events for sample")
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20220122001301.640337-1-gwendal@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/Makefile
drivers/platform/chrome/cros_ec_sensorhub_ring.c
drivers/platform/chrome/cros_ec_sensorhub_trace.h [new file with mode: 0644]
drivers/platform/chrome/cros_ec_trace.h