From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: linux-kernel@vger.kernel.org
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>,
Vinod Koul <vinod.koul@intel.com>,
dmaengine@vger.kernel.org
Subject: [next,v2,1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata()
Date: Sun, 28 Apr 2019 12:00:24 +0800 [thread overview]
Message-ID: <20190428040025.142181-1-wangkefeng.wang@huawei.com> (raw)
Using dev_get_drvdata directly.
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
drivers/dma/bcm-sba-raid.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c
index 72878ac5c78d..fa81d0177765 100644
--- a/drivers/dma/bcm-sba-raid.c
+++ b/drivers/dma/bcm-sba-raid.c
@@ -1459,8 +1459,7 @@ static void sba_receive_message(struct mbox_client *cl, void *msg)
static int sba_debugfs_stats_show(struct seq_file *file, void *offset)
{
- struct platform_device *pdev = to_platform_device(file->private);
- struct sba_device *sba = platform_get_drvdata(pdev);
+ struct sba_device *sba = dev_get_drvdata(file->private);
/* Write stats in file */
sba_write_stats_in_seqfile(sba, file);
WARNING: multiple messages have this Message-ID (diff)
From: Kefeng Wang <wangkefeng.wang@huawei.com>
To: <linux-kernel@vger.kernel.org>
Cc: Kefeng Wang <wangkefeng.wang@huawei.com>,
Vinod Koul <vinod.koul@intel.com>, <dmaengine@vger.kernel.org>
Subject: [PATCH next v2 1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata()
Date: Sun, 28 Apr 2019 12:00:24 +0800 [thread overview]
Message-ID: <20190428040025.142181-1-wangkefeng.wang@huawei.com> (raw)
Message-ID: <20190428040024.4cRmzH658Df1uZiIN3tBFPHh2LEZ9RcX6HSMMowW-l0@z> (raw)
In-Reply-To: <20190426115235.GX28103@vkoul-mobl>
Using dev_get_drvdata directly.
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: dmaengine@vger.kernel.org
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
drivers/dma/bcm-sba-raid.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/dma/bcm-sba-raid.c b/drivers/dma/bcm-sba-raid.c
index 72878ac5c78d..fa81d0177765 100644
--- a/drivers/dma/bcm-sba-raid.c
+++ b/drivers/dma/bcm-sba-raid.c
@@ -1459,8 +1459,7 @@ static void sba_receive_message(struct mbox_client *cl, void *msg)
static int sba_debugfs_stats_show(struct seq_file *file, void *offset)
{
- struct platform_device *pdev = to_platform_device(file->private);
- struct sba_device *sba = platform_get_drvdata(pdev);
+ struct sba_device *sba = dev_get_drvdata(file->private);
/* Write stats in file */
sba_write_stats_in_seqfile(sba, file);
--
2.20.1
next prev reply other threads:[~2019-04-28 4:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190423075020.173734-1-wangkefeng.wang@huawei.com>
2019-04-23 7:49 ` [next,03/25] dmaengine: Use dev_get_drvdata() Kefeng Wang
2019-04-23 7:49 ` [PATCH next 03/25] " Kefeng Wang
2019-04-26 11:52 ` [next,03/25] " Vinod Koul
2019-04-26 11:52 ` [PATCH next 03/25] " Vinod Koul
2019-04-28 4:00 ` Kefeng Wang [this message]
2019-04-28 4:00 ` [PATCH next v2 1/2] dmaengine: bcm-sba-raid: " Kefeng Wang
2019-04-28 4:00 ` [next,v2,2/2] dmaengine: nbpfaxi: " Kefeng Wang
2019-04-28 4:00 ` [PATCH next v2 2/2] " Kefeng Wang
2019-04-29 5:17 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Vinod Koul
2019-04-29 5:17 ` [PATCH next v2 1/2] " Vinod Koul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190428040025.142181-1-wangkefeng.wang@huawei.com \
--to=wangkefeng.wang@huawei.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=vinod.koul@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox