From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA84930E84D for ; Mon, 15 Dec 2025 07:24:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765783459; cv=none; b=HesCDDSfYJYiGgkQgB8y6M01bpHYfLE09Yb47iZP+lvNKIU9Z4mjFUp2qb031GZKcDsDZBqaVAZIqpPnH4qoDQwW+Q/A4OwqyWN5JwjbGUZzyvlNsejVN+y5OsIIac4jhIZ47ZNPIyMgdyZLeuA3ZWnma1+UYE2GdNezPTwXP0Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765783459; c=relaxed/simple; bh=IohxA+HbB0DZaupV93o9uo3GzrNHJa4aB8aDCmZCDOk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zjgr8EhxLGAZbXNZNfJwHHWJSBjhvhdmeZR5/8AoYCpLkBSas34Rc9uG7aL8Q4e8XrIWzxsiGPQ1AAY9sWJRNmRbFRl6EX8ZGiTm08iHY5sU774fPRzfvyQ/DJM/7ZMVyoDLfkzTcyKjVIXO5hiVOhIHKX1SI0fSCR6BfJnPCig= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bye+8z1e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bye+8z1e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8B96C4CEF5; Mon, 15 Dec 2025 07:24:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1765783459; bh=IohxA+HbB0DZaupV93o9uo3GzrNHJa4aB8aDCmZCDOk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bye+8z1eHTkzYZQU6jFjQ8eDkgIoA3cvOX8lxLUOzrPc6Wqx0xUSs2sIdKyx7vjhZ pUeG+BTsREnAEaknjYineD3QdsuMKWJ4aEu/5L1ccOUomgovcPZH6p9k+EEs4QaJaj K0fI2+FI09vVGiU8ml9JcuS3+743iAte/bt7XKO8MTZ/lAt6/uKrgY0CfTFjbQdUDE qo5AldCdmczWweRvyR2PYGYSWKbd5G83yklh9wvGkdHlw8O0BAY9PO+XYZz+Y52TfW iUM1wzG8jGI1rMIwIo0IBlt8iE58GeCRWoqZ9JW9hog2UuOebGyIoqjbKknQQuqpqA EQy7FHwfCbncg== Date: Mon, 15 Dec 2025 16:24:14 +0900 From: Sumit Garg To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Jens Wiklander , op-tee@lists.trustedfirmware.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 03/17] tee: Adapt documentation to cover recent additions Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 > --- > Documentation/driver-api/tee.rst | 18 +++--------------- > 1 file changed, 3 insertions(+), 15 deletions(-) Reviewed-by: Sumit Garg -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 >