public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc: davinci: order includes alphabetically
@ 2024-10-07 11:49 Bartosz Golaszewski
  2024-10-07 11:49 ` [PATCH 2/2] mmc: davinci: use generic device_get_match_data() Bartosz Golaszewski
  2024-10-08 14:36 ` [PATCH 1/2] mmc: davinci: order includes alphabetically Ulf Hansson
  0 siblings, 2 replies; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-10-07 11:49 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: linux-mmc, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

For better readability, put all header inclusions in alphabetical order.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/mmc/host/davinci_mmc.c | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index 7ed533758dbe..fe7712532e84 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -7,24 +7,23 @@
  * Copyright (C) 2009 David Brownell
  */
 
-#include <linux/module.h>
-#include <linux/ioport.h>
-#include <linux/platform_device.h>
 #include <linux/clk.h>
-#include <linux/err.h>
 #include <linux/cpufreq.h>
-#include <linux/mmc/host.h>
-#include <linux/io.h>
-#include <linux/irq.h>
 #include <linux/delay.h>
-#include <linux/dmaengine.h>
 #include <linux/dma-mapping.h>
-#include <linux/mmc/mmc.h>
-#include <linux/of.h>
-#include <linux/mmc/slot-gpio.h>
+#include <linux/dmaengine.h>
+#include <linux/err.h>
 #include <linux/interrupt.h>
-
+#include <linux/io.h>
+#include <linux/ioport.h>
+#include <linux/irq.h>
+#include <linux/mmc/host.h>
+#include <linux/mmc/mmc.h>
+#include <linux/mmc/slot-gpio.h>
+#include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_data/mmc-davinci.h>
+#include <linux/platform_device.h>
 
 /*
  * Register Definitions
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] mmc: davinci: use generic device_get_match_data()
  2024-10-07 11:49 [PATCH 1/2] mmc: davinci: order includes alphabetically Bartosz Golaszewski
@ 2024-10-07 11:49 ` Bartosz Golaszewski
  2024-10-08 14:36   ` Ulf Hansson
  2024-10-08 14:36 ` [PATCH 1/2] mmc: davinci: order includes alphabetically Ulf Hansson
  1 sibling, 1 reply; 4+ messages in thread
From: Bartosz Golaszewski @ 2024-10-07 11:49 UTC (permalink / raw)
  To: Ulf Hansson; +Cc: linux-mmc, linux-kernel, Bartosz Golaszewski

From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

There's no reason for this driver to use the OF-specific variant so
switch to using the generic device_get_match_data() helper instead.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/mmc/host/davinci_mmc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index fe7712532e84..cde4c4339ab7 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -21,9 +21,9 @@
 #include <linux/mmc/mmc.h>
 #include <linux/mmc/slot-gpio.h>
 #include <linux/module.h>
-#include <linux/of.h>
 #include <linux/platform_data/mmc-davinci.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 
 /*
  * Register Definitions
@@ -1228,7 +1228,7 @@ static int davinci_mmcsd_probe(struct platform_device *pdev)
 
 	host->mmc_input_clk = clk_get_rate(host->clk);
 
-	pdev->id_entry = of_device_get_match_data(&pdev->dev);
+	pdev->id_entry = device_get_match_data(&pdev->dev);
 	if (pdev->id_entry) {
 		ret = mmc_of_parse(mmc);
 		if (ret) {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] mmc: davinci: order includes alphabetically
  2024-10-07 11:49 [PATCH 1/2] mmc: davinci: order includes alphabetically Bartosz Golaszewski
  2024-10-07 11:49 ` [PATCH 2/2] mmc: davinci: use generic device_get_match_data() Bartosz Golaszewski
@ 2024-10-08 14:36 ` Ulf Hansson
  1 sibling, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2024-10-08 14:36 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: linux-mmc, linux-kernel, Bartosz Golaszewski

On Mon, 7 Oct 2024 at 13:49, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> For better readability, put all header inclusions in alphabetical order.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/davinci_mmc.c | 23 +++++++++++------------
>  1 file changed, 11 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
> index 7ed533758dbe..fe7712532e84 100644
> --- a/drivers/mmc/host/davinci_mmc.c
> +++ b/drivers/mmc/host/davinci_mmc.c
> @@ -7,24 +7,23 @@
>   * Copyright (C) 2009 David Brownell
>   */
>
> -#include <linux/module.h>
> -#include <linux/ioport.h>
> -#include <linux/platform_device.h>
>  #include <linux/clk.h>
> -#include <linux/err.h>
>  #include <linux/cpufreq.h>
> -#include <linux/mmc/host.h>
> -#include <linux/io.h>
> -#include <linux/irq.h>
>  #include <linux/delay.h>
> -#include <linux/dmaengine.h>
>  #include <linux/dma-mapping.h>
> -#include <linux/mmc/mmc.h>
> -#include <linux/of.h>
> -#include <linux/mmc/slot-gpio.h>
> +#include <linux/dmaengine.h>
> +#include <linux/err.h>
>  #include <linux/interrupt.h>
> -
> +#include <linux/io.h>
> +#include <linux/ioport.h>
> +#include <linux/irq.h>
> +#include <linux/mmc/host.h>
> +#include <linux/mmc/mmc.h>
> +#include <linux/mmc/slot-gpio.h>
> +#include <linux/module.h>
> +#include <linux/of.h>
>  #include <linux/platform_data/mmc-davinci.h>
> +#include <linux/platform_device.h>
>
>  /*
>   * Register Definitions
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] mmc: davinci: use generic device_get_match_data()
  2024-10-07 11:49 ` [PATCH 2/2] mmc: davinci: use generic device_get_match_data() Bartosz Golaszewski
@ 2024-10-08 14:36   ` Ulf Hansson
  0 siblings, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2024-10-08 14:36 UTC (permalink / raw)
  To: Bartosz Golaszewski; +Cc: linux-mmc, linux-kernel, Bartosz Golaszewski

On Mon, 7 Oct 2024 at 13:49, Bartosz Golaszewski <brgl@bgdev.pl> wrote:
>
> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> There's no reason for this driver to use the OF-specific variant so
> switch to using the generic device_get_match_data() helper instead.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

Applied for next, thanks!

Kind regards
Uffe


> ---
>  drivers/mmc/host/davinci_mmc.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
> index fe7712532e84..cde4c4339ab7 100644
> --- a/drivers/mmc/host/davinci_mmc.c
> +++ b/drivers/mmc/host/davinci_mmc.c
> @@ -21,9 +21,9 @@
>  #include <linux/mmc/mmc.h>
>  #include <linux/mmc/slot-gpio.h>
>  #include <linux/module.h>
> -#include <linux/of.h>
>  #include <linux/platform_data/mmc-davinci.h>
>  #include <linux/platform_device.h>
> +#include <linux/property.h>
>
>  /*
>   * Register Definitions
> @@ -1228,7 +1228,7 @@ static int davinci_mmcsd_probe(struct platform_device *pdev)
>
>         host->mmc_input_clk = clk_get_rate(host->clk);
>
> -       pdev->id_entry = of_device_get_match_data(&pdev->dev);
> +       pdev->id_entry = device_get_match_data(&pdev->dev);
>         if (pdev->id_entry) {
>                 ret = mmc_of_parse(mmc);
>                 if (ret) {
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-08 14:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07 11:49 [PATCH 1/2] mmc: davinci: order includes alphabetically Bartosz Golaszewski
2024-10-07 11:49 ` [PATCH 2/2] mmc: davinci: use generic device_get_match_data() Bartosz Golaszewski
2024-10-08 14:36   ` Ulf Hansson
2024-10-08 14:36 ` [PATCH 1/2] mmc: davinci: order includes alphabetically Ulf Hansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox