Commit ffcfc20f authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul

dmaengine: idma64: Move driver name to the header

There are two drivers that are relying on the iDMA 64-bit driver name
to match. Instead of duplicating string in both of them, dedicate
a header file and share it between users.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent c7266d26
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
#include <linux/platform_device.h> #include <linux/platform_device.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "idma64.h" #include <linux/dma/idma64.h>
/* Platform driver name */ #include "idma64.h"
#define DRV_NAME "idma64"
/* For now we support only two channels */ /* For now we support only two channels */
#define IDMA64_NR_CHAN 2 #define IDMA64_NR_CHAN 2
...@@ -699,7 +698,7 @@ static struct platform_driver idma64_platform_driver = { ...@@ -699,7 +698,7 @@ static struct platform_driver idma64_platform_driver = {
.probe = idma64_platform_probe, .probe = idma64_platform_probe,
.remove = idma64_platform_remove, .remove = idma64_platform_remove,
.driver = { .driver = {
.name = DRV_NAME, .name = LPSS_IDMA64_DRIVER_NAME,
.pm = &idma64_dev_pm_ops, .pm = &idma64_dev_pm_ops,
}, },
}; };
...@@ -709,4 +708,4 @@ module_platform_driver(idma64_platform_driver); ...@@ -709,4 +708,4 @@ module_platform_driver(idma64_platform_driver);
MODULE_LICENSE("GPL v2"); MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("iDMA64 core driver"); MODULE_DESCRIPTION("iDMA64 core driver");
MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>"); MODULE_AUTHOR("Andy Shevchenko <andriy.shevchenko@linux.intel.com>");
MODULE_ALIAS("platform:" DRV_NAME); MODULE_ALIAS("platform:" LPSS_IDMA64_DRIVER_NAME);
...@@ -28,6 +28,8 @@ ...@@ -28,6 +28,8 @@
#include <linux/seq_file.h> #include <linux/seq_file.h>
#include <linux/io-64-nonatomic-lo-hi.h> #include <linux/io-64-nonatomic-lo-hi.h>
#include <linux/dma/idma64.h>
#include "intel-lpss.h" #include "intel-lpss.h"
#define LPSS_DEV_OFFSET 0x000 #define LPSS_DEV_OFFSET 0x000
...@@ -96,8 +98,6 @@ static const struct resource intel_lpss_idma64_resources[] = { ...@@ -96,8 +98,6 @@ static const struct resource intel_lpss_idma64_resources[] = {
DEFINE_RES_IRQ(0), DEFINE_RES_IRQ(0),
}; };
#define LPSS_IDMA64_DRIVER_NAME "idma64"
/* /*
* Cells needs to be ordered so that the iDMA is created first. This is * Cells needs to be ordered so that the iDMA is created first. This is
* because we need to be sure the DMA is available when the host controller * because we need to be sure the DMA is available when the host controller
......
/* SPDX-License-Identifier: GPL-2.0 */
/*
* Definitions for the Intel integrated DMA 64-bit
*
* Copyright (C) 2019 Intel Corporation
*/
#ifndef __LINUX_DMA_IDMA64_H__
#define __LINUX_DMA_IDMA64_H__
/* Platform driver name */
#define LPSS_IDMA64_DRIVER_NAME "idma64"
#endif /* __LINUX_DMA_IDMA64_H__ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment