Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tee: Adapt documentation to cover recent additions

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.

Reviewed-by: Sumit Garg <sumit.garg@oss.qualcomm.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>

authored by

Uwe Kleine-König and committed by
Jens Wiklander
71e47245 71a33465

+3 -15
+3 -15
Documentation/driver-api/tee.rst
··· 43 43 MODULE_DEVICE_TABLE(tee, client_id_table); 44 44 45 45 static struct tee_client_driver client_driver = { 46 + .probe = client_probe, 47 + .remove = client_remove, 46 48 .id_table = client_id_table, 47 49 .driver = { 48 50 .name = DRIVER_NAME, 49 - .bus = &tee_bus_type, 50 - .probe = client_probe, 51 - .remove = client_remove, 52 51 }, 53 52 }; 54 53 55 - static int __init client_init(void) 56 - { 57 - return driver_register(&client_driver.driver); 58 - } 59 - 60 - static void __exit client_exit(void) 61 - { 62 - driver_unregister(&client_driver.driver); 63 - } 64 - 65 - module_init(client_init); 66 - module_exit(client_exit); 54 + module_tee_client_driver(client_driver);