* [next,03/25] dmaengine: Use dev_get_drvdata() @ 2019-04-23 7:49 ` Kefeng Wang 2019-04-23 7:49 ` [PATCH next 03/25] " Kefeng Wang 2019-04-26 11:52 ` [next,03/25] " Vinod Koul 0 siblings, 2 replies; 10+ messages in thread From: Kefeng Wang @ 2019-04-23 7:49 UTC (permalink / raw) To: linux-kernel; +Cc: Masahiro Yamada, Kefeng Wang, Vinod Koul, dmaengine 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 +-- drivers/dma/nbpfaxi.c | 4 ++-- 2 files changed, 3 insertions(+), 4 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); diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH next 03/25] dmaengine: Use dev_get_drvdata() 2019-04-23 7:49 ` [next,03/25] dmaengine: Use dev_get_drvdata() Kefeng Wang @ 2019-04-23 7:49 ` Kefeng Wang 2019-04-26 11:52 ` [next,03/25] " Vinod Koul 1 sibling, 0 replies; 10+ messages in thread From: Kefeng Wang @ 2019-04-23 7:49 UTC (permalink / raw) To: linux-kernel; +Cc: Masahiro Yamada, Kefeng Wang, Vinod Koul, dmaengine 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 +-- drivers/dma/nbpfaxi.c | 4 ++-- 2 files changed, 3 insertions(+), 4 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); diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif -- 2.20.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [next,03/25] dmaengine: Use dev_get_drvdata() @ 2019-04-26 11:52 ` Vinod Koul 2019-04-26 11:52 ` [PATCH next 03/25] " Vinod Koul 2019-04-28 4:00 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Kefeng Wang 0 siblings, 2 replies; 10+ messages in thread From: Vinod Koul @ 2019-04-26 11:52 UTC (permalink / raw) To: Kefeng Wang; +Cc: linux-kernel, Masahiro Yamada, Vinod Koul, dmaengine On 23-04-19, 15:49, Kefeng Wang wrote: > 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 +-- > drivers/dma/nbpfaxi.c | 4 ++-- I would prefer these to be two patches, one for each driver ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH next 03/25] dmaengine: Use dev_get_drvdata() 2019-04-26 11:52 ` [next,03/25] " Vinod Koul @ 2019-04-26 11:52 ` Vinod Koul 2019-04-28 4:00 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Kefeng Wang 1 sibling, 0 replies; 10+ messages in thread From: Vinod Koul @ 2019-04-26 11:52 UTC (permalink / raw) To: Kefeng Wang; +Cc: linux-kernel, Masahiro Yamada, Vinod Koul, dmaengine On 23-04-19, 15:49, Kefeng Wang wrote: > 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 +-- > drivers/dma/nbpfaxi.c | 4 ++-- I would prefer these to be two patches, one for each driver -- ~Vinod ^ permalink raw reply [flat|nested] 10+ messages in thread
* [next,v2,1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata() @ 2019-04-28 4:00 ` Kefeng Wang 2019-04-28 4:00 ` [PATCH next v2 1/2] " Kefeng Wang ` (2 more replies) 0 siblings, 3 replies; 10+ messages in thread From: Kefeng Wang @ 2019-04-28 4:00 UTC (permalink / raw) To: linux-kernel; +Cc: Kefeng Wang, Vinod Koul, dmaengine 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); ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH next v2 1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata() 2019-04-28 4:00 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Kefeng Wang @ 2019-04-28 4:00 ` Kefeng Wang 2019-04-28 4:00 ` [next,v2,2/2] dmaengine: nbpfaxi: " Kefeng Wang 2019-04-29 5:17 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Vinod Koul 2 siblings, 0 replies; 10+ messages in thread From: Kefeng Wang @ 2019-04-28 4:00 UTC (permalink / raw) To: linux-kernel; +Cc: Kefeng Wang, Vinod Koul, dmaengine 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 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [next,v2,2/2] dmaengine: nbpfaxi: Use dev_get_drvdata() @ 2019-04-28 4:00 ` Kefeng Wang 2019-04-28 4:00 ` [PATCH next v2 2/2] " Kefeng Wang 0 siblings, 1 reply; 10+ messages in thread From: Kefeng Wang @ 2019-04-28 4:00 UTC (permalink / raw) To: linux-kernel; +Cc: Kefeng Wang, Vinod Koul, dmaengine 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/nbpfaxi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH next v2 2/2] dmaengine: nbpfaxi: Use dev_get_drvdata() 2019-04-28 4:00 ` [next,v2,2/2] dmaengine: nbpfaxi: " Kefeng Wang @ 2019-04-28 4:00 ` Kefeng Wang 0 siblings, 0 replies; 10+ messages in thread From: Kefeng Wang @ 2019-04-28 4:00 UTC (permalink / raw) To: linux-kernel; +Cc: Kefeng Wang, Vinod Koul, dmaengine 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/nbpfaxi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/nbpfaxi.c b/drivers/dma/nbpfaxi.c index a67b292190f4..594409a6e975 100644 --- a/drivers/dma/nbpfaxi.c +++ b/drivers/dma/nbpfaxi.c @@ -1491,14 +1491,14 @@ MODULE_DEVICE_TABLE(platform, nbpf_ids); #ifdef CONFIG_PM static int nbpf_runtime_suspend(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); clk_disable_unprepare(nbpf->clk); return 0; } static int nbpf_runtime_resume(struct device *dev) { - struct nbpf_device *nbpf = platform_get_drvdata(to_platform_device(dev)); + struct nbpf_device *nbpf = dev_get_drvdata(dev); return clk_prepare_enable(nbpf->clk); } #endif -- 2.20.1 ^ permalink raw reply related [flat|nested] 10+ messages in thread
* [next,v2,1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata() @ 2019-04-29 5:17 ` Vinod Koul 2019-04-29 5:17 ` [PATCH next v2 1/2] " Vinod Koul 0 siblings, 1 reply; 10+ messages in thread From: Vinod Koul @ 2019-04-29 5:17 UTC (permalink / raw) To: Kefeng Wang; +Cc: linux-kernel, Vinod Koul, dmaengine On 28-04-19, 12:00, Kefeng Wang wrote: > Using dev_get_drvdata directly. > Applied both, thanks ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH next v2 1/2] dmaengine: bcm-sba-raid: Use dev_get_drvdata() 2019-04-29 5:17 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Vinod Koul @ 2019-04-29 5:17 ` Vinod Koul 0 siblings, 0 replies; 10+ messages in thread From: Vinod Koul @ 2019-04-29 5:17 UTC (permalink / raw) To: Kefeng Wang; +Cc: linux-kernel, Vinod Koul, dmaengine On 28-04-19, 12:00, Kefeng Wang wrote: > Using dev_get_drvdata directly. > Applied both, thanks -- ~Vinod ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2019-04-29 5:17 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 ` [next,v2,1/2] dmaengine: bcm-sba-raid: " Kefeng Wang
2019-04-28 4:00 ` [PATCH next v2 1/2] " 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox