[PATCH v2 03/10] watchdog: wdt-uclass.c: neaten UCLASS_DRIVER definition

Stefan Roese sr at denx.de
Tue Jun 29 07:57:23 CEST 2021


On 28.05.21 00:00, Rasmus Villemoes wrote:
> The addition of .pre_probe and .per_device_auto made this look
> bad. Fix it.
> 
> Signed-off-by: Rasmus Villemoes <rasmus.villemoes at prevas.dk>

Reviewed-by: Stefan Roese <sr at denx.de>

Thanks,
Stefan

> ---
>   drivers/watchdog/wdt-uclass.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c
> index 3b6aa3d586..360f052227 100644
> --- a/drivers/watchdog/wdt-uclass.c
> +++ b/drivers/watchdog/wdt-uclass.c
> @@ -199,10 +199,10 @@ static int wdt_pre_probe(struct udevice *dev)
>   }
>   
>   UCLASS_DRIVER(wdt) = {
> -	.id		= UCLASS_WDT,
> -	.name		= "watchdog",
> -	.flags		= DM_UC_FLAG_SEQ_ALIAS,
> -	.post_bind	= wdt_post_bind,
> +	.id			= UCLASS_WDT,
> +	.name			= "watchdog",
> +	.flags			= DM_UC_FLAG_SEQ_ALIAS,
> +	.post_bind		= wdt_post_bind,
>   	.pre_probe		= wdt_pre_probe,
>   	.per_device_auto	= sizeof(struct wdt_priv),
>   };
> 


Viele Grüße,
Stefan

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de


More information about the U-Boot mailing list