lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aT-3ngz0md7wOJhC@sumit-X1>
Date: Mon, 15 Dec 2025 16:24:14 +0900
From: Sumit Garg <sumit.garg@...nel.org>
To: Uwe Kleine-König <u.kleine-koenig@...libre.com>
Cc: Jens Wiklander <jens.wiklander@...aro.org>,
	op-tee@...ts.trustedfirmware.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 03/17] tee: Adapt documentation to cover recent
 additions

On Thu, Dec 11, 2025 at 06:14:57PM +0100, Uwe Kleine-König wrote:
> The previous commits introduced some helpers to reduce boilerplate
> and bus specific callbacks for probe and remove.
> 
> Adapt the reference example to make use of these.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@...libre.com>
> ---
>  Documentation/driver-api/tee.rst | 18 +++---------------
>  1 file changed, 3 insertions(+), 15 deletions(-)

Reviewed-by: Sumit Garg <sumit.garg@....qualcomm.com>

-Sumit

> 
> diff --git a/Documentation/driver-api/tee.rst b/Documentation/driver-api/tee.rst
> index 5eaeb8103988..4d58ac0712c1 100644
> --- a/Documentation/driver-api/tee.rst
> +++ b/Documentation/driver-api/tee.rst
> @@ -43,24 +43,12 @@ snippet would look like::
>  	MODULE_DEVICE_TABLE(tee, client_id_table);
>  
>  	static struct tee_client_driver client_driver = {
> +		.probe		= client_probe,
> +		.remove		= client_remove,
>  		.id_table	= client_id_table,
>  		.driver		= {
>  			.name		= DRIVER_NAME,
> -			.bus		= &tee_bus_type,
> -			.probe		= client_probe,
> -			.remove		= client_remove,
>  		},
>  	};
>  
> -	static int __init client_init(void)
> -	{
> -		return driver_register(&client_driver.driver);
> -	}
> -
> -	static void __exit client_exit(void)
> -	{
> -		driver_unregister(&client_driver.driver);
> -	}
> -
> -	module_init(client_init);
> -	module_exit(client_exit);
> +	module_tee_client_driver(client_driver);
> -- 
> 2.47.3
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ