mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] ehci-zynq: variscite: tee: fix many typos struct device.
@ 2025-11-27  4:54 chalianis1
  2025-11-27  9:23 ` Lucas Stach
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: chalianis1 @ 2025-11-27  4:54 UTC (permalink / raw)
  To: s.hauer; +Cc: barebox, Chali Anis

From: Chali Anis <chalianis1@gmail.com>

fix struct device_d to struct device.

Signed-off-by: Chali Anis <chalianis1@gmail.com>
---
 arch/arm/boards/variscite-som-mx7/board.c | 2 +-
 drivers/usb/host/ehci-zynq.c              | 2 +-
 include/linux/tee_drv.h                   | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boards/variscite-som-mx7/board.c b/arch/arm/boards/variscite-som-mx7/board.c
index 005228d107af..8bce4ec8616d 100644
--- a/arch/arm/boards/variscite-som-mx7/board.c
+++ b/arch/arm/boards/variscite-som-mx7/board.c
@@ -5,7 +5,7 @@
 #include <deep-probe.h>
 #include <mach/imx/bbu.h>
 
-static int var_som_mx7_probe(struct device_d *dev)
+static int var_som_mx7_probe(struct device *dev)
 {
 	imx7_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", BBU_HANDLER_FLAG_DEFAULT);
 	return 0;
diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
index 13b551d09156..b4b0e0f89100 100644
--- a/drivers/usb/host/ehci-zynq.c
+++ b/drivers/usb/host/ehci-zynq.c
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <linux/usb/ulpi.h>
 
-static int zynq_ehci_probe(struct device_d *dev)
+static int zynq_ehci_probe(struct device *dev)
 {
 	struct resource *res;
 	void __iomem *base;
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
index e2c1042debce..6a8e19459f47 100644
--- a/include/linux/tee_drv.h
+++ b/include/linux/tee_drv.h
@@ -201,7 +201,7 @@ struct tee_shm {
 	struct list_head link;
 
 	int fd;
-	struct device_d dev;
+	struct device dev;
 	struct cdev cdev;
 	struct resource res;
 };



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

* Re: [PATCH] ehci-zynq: variscite: tee: fix many typos struct device.
  2025-11-27  4:54 [PATCH] ehci-zynq: variscite: tee: fix many typos struct device chalianis1
@ 2025-11-27  9:23 ` Lucas Stach
  2025-11-27  9:27   ` Ahmad Fatoum
  2025-11-27 11:42 ` Sascha Hauer
  2025-11-27 11:43 ` Sascha Hauer
  2 siblings, 1 reply; 5+ messages in thread
From: Lucas Stach @ 2025-11-27  9:23 UTC (permalink / raw)
  To: chalianis1, s.hauer; +Cc: barebox

Am Mittwoch, dem 26.11.2025 um 23:54 -0500 schrieb
chalianis1@gmail.com:
> From: Chali Anis <chalianis1@gmail.com>
> 
> fix struct device_d to struct device.

It's not really a typo, as struct device was called struct device_d for
a long time in barebox. You are fixing the last remnants of that. I'm
not sure if it's a good idea to lump all those different sites into a
single patch. At least the subject doesn't really make sense, as zynq,
a board and tee are not one subsystem.

Also, now that you remove the last usages of the deprecated device_d
you can also remove the
#define device_d device in driver.h

Regards,
Lucas

> 
> Signed-off-by: Chali Anis <chalianis1@gmail.com>
> ---
>  arch/arm/boards/variscite-som-mx7/board.c | 2 +-
>  drivers/usb/host/ehci-zynq.c              | 2 +-
>  include/linux/tee_drv.h                   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boards/variscite-som-mx7/board.c b/arch/arm/boards/variscite-som-mx7/board.c
> index 005228d107af..8bce4ec8616d 100644
> --- a/arch/arm/boards/variscite-som-mx7/board.c
> +++ b/arch/arm/boards/variscite-som-mx7/board.c
> @@ -5,7 +5,7 @@
>  #include <deep-probe.h>
>  #include <mach/imx/bbu.h>
>  
> -static int var_som_mx7_probe(struct device_d *dev)
> +static int var_som_mx7_probe(struct device *dev)
>  {
>  	imx7_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", BBU_HANDLER_FLAG_DEFAULT);
>  	return 0;
> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
> index 13b551d09156..b4b0e0f89100 100644
> --- a/drivers/usb/host/ehci-zynq.c
> +++ b/drivers/usb/host/ehci-zynq.c
> @@ -6,7 +6,7 @@
>  #include <common.h>
>  #include <linux/usb/ulpi.h>
>  
> -static int zynq_ehci_probe(struct device_d *dev)
> +static int zynq_ehci_probe(struct device *dev)
>  {
>  	struct resource *res;
>  	void __iomem *base;
> diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
> index e2c1042debce..6a8e19459f47 100644
> --- a/include/linux/tee_drv.h
> +++ b/include/linux/tee_drv.h
> @@ -201,7 +201,7 @@ struct tee_shm {
>  	struct list_head link;
>  
>  	int fd;
> -	struct device_d dev;
> +	struct device dev;
>  	struct cdev cdev;
>  	struct resource res;
>  };
> 




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

* Re: [PATCH] ehci-zynq: variscite: tee: fix many typos struct device.
  2025-11-27  9:23 ` Lucas Stach
@ 2025-11-27  9:27   ` Ahmad Fatoum
  0 siblings, 0 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2025-11-27  9:27 UTC (permalink / raw)
  To: Lucas Stach, chalianis1, s.hauer; +Cc: barebox

Hi,

On 11/27/25 10:23 AM, Lucas Stach wrote:
> Am Mittwoch, dem 26.11.2025 um 23:54 -0500 schrieb
> chalianis1@gmail.com:
>> From: Chali Anis <chalianis1@gmail.com>
>>
>> fix struct device_d to struct device.
> 
> It's not really a typo, as struct device was called struct device_d for
> a long time in barebox. You are fixing the last remnants of that. I'm
> not sure if it's a good idea to lump all those different sites into a
> single patch. At least the subject doesn't really make sense, as zynq,
> a board and tee are not one subsystem.

I use treewide: as prefix such minor patches that just do trivial stuff
like renames. While at it, you could also rename driver_d to driver as well.

> Also, now that you remove the last usages of the deprecated device_d
> you can also remove the
> #define device_d device in driver.h

I would leave that in for out of tree board code to avoid the churn..

Cheers,
Ahmad

> 
> Regards,
> Lucas
> 
>>
>> Signed-off-by: Chali Anis <chalianis1@gmail.com>
>> ---
>>  arch/arm/boards/variscite-som-mx7/board.c | 2 +-
>>  drivers/usb/host/ehci-zynq.c              | 2 +-
>>  include/linux/tee_drv.h                   | 2 +-
>>  3 files changed, 3 insertions(+), 3 deletions(-)
>>
>> diff --git a/arch/arm/boards/variscite-som-mx7/board.c b/arch/arm/boards/variscite-som-mx7/board.c
>> index 005228d107af..8bce4ec8616d 100644
>> --- a/arch/arm/boards/variscite-som-mx7/board.c
>> +++ b/arch/arm/boards/variscite-som-mx7/board.c
>> @@ -5,7 +5,7 @@
>>  #include <deep-probe.h>
>>  #include <mach/imx/bbu.h>
>>  
>> -static int var_som_mx7_probe(struct device_d *dev)
>> +static int var_som_mx7_probe(struct device *dev)
>>  {
>>  	imx7_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", BBU_HANDLER_FLAG_DEFAULT);
>>  	return 0;
>> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
>> index 13b551d09156..b4b0e0f89100 100644
>> --- a/drivers/usb/host/ehci-zynq.c
>> +++ b/drivers/usb/host/ehci-zynq.c
>> @@ -6,7 +6,7 @@
>>  #include <common.h>
>>  #include <linux/usb/ulpi.h>
>>  
>> -static int zynq_ehci_probe(struct device_d *dev)
>> +static int zynq_ehci_probe(struct device *dev)
>>  {
>>  	struct resource *res;
>>  	void __iomem *base;
>> diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
>> index e2c1042debce..6a8e19459f47 100644
>> --- a/include/linux/tee_drv.h
>> +++ b/include/linux/tee_drv.h
>> @@ -201,7 +201,7 @@ struct tee_shm {
>>  	struct list_head link;
>>  
>>  	int fd;
>> -	struct device_d dev;
>> +	struct device dev;
>>  	struct cdev cdev;
>>  	struct resource res;
>>  };
>>
> 
> 
> 

-- 
Pengutronix e.K.                  |                             |
Steuerwalder Str. 21              | http://www.pengutronix.de/  |
31137 Hildesheim, Germany         | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686  | Fax:   +49-5121-206917-5555 |




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

* Re: [PATCH] ehci-zynq: variscite: tee: fix many typos struct device.
  2025-11-27  4:54 [PATCH] ehci-zynq: variscite: tee: fix many typos struct device chalianis1
  2025-11-27  9:23 ` Lucas Stach
@ 2025-11-27 11:42 ` Sascha Hauer
  2025-11-27 11:43 ` Sascha Hauer
  2 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2025-11-27 11:42 UTC (permalink / raw)
  To: chalianis1; +Cc: barebox


On Wed, 26 Nov 2025 23:54:17 -0500, chalianis1@gmail.com wrote:
> fix struct device_d to struct device.
> 
> 

Applied, thanks!

[1/1] ehci-zynq: variscite: tee: fix many typos struct device.
      https://git.pengutronix.de/cgit/barebox/commit/?id=6816b9c4cdf6 (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer@pengutronix.de>




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

* Re: [PATCH] ehci-zynq: variscite: tee: fix many typos struct device.
  2025-11-27  4:54 [PATCH] ehci-zynq: variscite: tee: fix many typos struct device chalianis1
  2025-11-27  9:23 ` Lucas Stach
  2025-11-27 11:42 ` Sascha Hauer
@ 2025-11-27 11:43 ` Sascha Hauer
  2 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2025-11-27 11:43 UTC (permalink / raw)
  To: chalianis1; +Cc: barebox

Reworded while applying:

treewide: rename remnants of struct device_d

struct device_d has been renamed to struct device 3 years ago. Rename
remnants of struct device_d to device. This was unnoticed so far as we
have a #define device_d device in driver.h.

Sascha

On Wed, Nov 26, 2025 at 11:54:17PM -0500, chalianis1@gmail.com wrote:
> From: Chali Anis <chalianis1@gmail.com>
> 
> fix struct device_d to struct device.
> 
> Signed-off-by: Chali Anis <chalianis1@gmail.com>
> ---
>  arch/arm/boards/variscite-som-mx7/board.c | 2 +-
>  drivers/usb/host/ehci-zynq.c              | 2 +-
>  include/linux/tee_drv.h                   | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/boards/variscite-som-mx7/board.c b/arch/arm/boards/variscite-som-mx7/board.c
> index 005228d107af..8bce4ec8616d 100644
> --- a/arch/arm/boards/variscite-som-mx7/board.c
> +++ b/arch/arm/boards/variscite-som-mx7/board.c
> @@ -5,7 +5,7 @@
>  #include <deep-probe.h>
>  #include <mach/imx/bbu.h>
>  
> -static int var_som_mx7_probe(struct device_d *dev)
> +static int var_som_mx7_probe(struct device *dev)
>  {
>  	imx7_bbu_internal_mmcboot_register_handler("eMMC", "/dev/mmc2", BBU_HANDLER_FLAG_DEFAULT);
>  	return 0;
> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c
> index 13b551d09156..b4b0e0f89100 100644
> --- a/drivers/usb/host/ehci-zynq.c
> +++ b/drivers/usb/host/ehci-zynq.c
> @@ -6,7 +6,7 @@
>  #include <common.h>
>  #include <linux/usb/ulpi.h>
>  
> -static int zynq_ehci_probe(struct device_d *dev)
> +static int zynq_ehci_probe(struct device *dev)
>  {
>  	struct resource *res;
>  	void __iomem *base;
> diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
> index e2c1042debce..6a8e19459f47 100644
> --- a/include/linux/tee_drv.h
> +++ b/include/linux/tee_drv.h
> @@ -201,7 +201,7 @@ struct tee_shm {
>  	struct list_head link;
>  
>  	int fd;
> -	struct device_d dev;
> +	struct device dev;
>  	struct cdev cdev;
>  	struct resource res;
>  };
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



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

end of thread, other threads:[~2025-11-27 11:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-27  4:54 [PATCH] ehci-zynq: variscite: tee: fix many typos struct device chalianis1
2025-11-27  9:23 ` Lucas Stach
2025-11-27  9:27   ` Ahmad Fatoum
2025-11-27 11:42 ` Sascha Hauer
2025-11-27 11:43 ` Sascha Hauer

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