diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-11-18 14:05:01 +0100 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2017-08-25 16:58:36 +0200 |
commit | 5e06723af998779210dffe9553b36b28955d5860 (patch) | |
tree | e3fd77c3263232935a735909b48105596b9ac494 /drivers/hwtracing/intel_th/core.c | |
parent | intel_th: Output devices without ports don't need assigning (diff) | |
download | linux-5e06723af998779210dffe9553b36b28955d5860.tar.xz linux-5e06723af998779210dffe9553b36b28955d5860.zip |
intel_th: Streamline the subdevice tree accessors
Make to_intel_th*() accessors available from the main header file.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Diffstat (limited to 'drivers/hwtracing/intel_th/core.c')
-rw-r--r-- | drivers/hwtracing/intel_th/core.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/drivers/hwtracing/intel_th/core.c b/drivers/hwtracing/intel_th/core.c index 8da567abc0ce..e6d302ba1707 100644 --- a/drivers/hwtracing/intel_th/core.c +++ b/drivers/hwtracing/intel_th/core.c @@ -156,21 +156,6 @@ static struct device_type intel_th_source_device_type = { .release = intel_th_device_release, }; -static struct intel_th *to_intel_th(struct intel_th_device *thdev) -{ - /* - * subdevice tree is flat: if this one is not a switch, its - * parent must be - */ - if (thdev->type != INTEL_TH_SWITCH) - thdev = to_intel_th_hub(thdev); - - if (WARN_ON_ONCE(!thdev || thdev->type != INTEL_TH_SWITCH)) - return NULL; - - return dev_get_drvdata(thdev->dev.parent); -} - static char *intel_th_output_devnode(struct device *dev, umode_t *mode, kuid_t *uid, kgid_t *gid) { |