Skip to content

Commit d752790

Browse files
committed
Merge tag 'tee-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee into soc/drivers
TEE update for 7.1 Clean up tee_core.h kernel-doc to eliminate build warnings * tag 'tee-for-v7.1' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee: tee: clean up tee_core.h kernel-doc Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 033d5c6 + e416e7f commit d752790

1 file changed

Lines changed: 16 additions & 14 deletions

File tree

include/linux/tee_core.h

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ enum tee_dma_heap_id {
5050
* @dev: embedded basic device structure
5151
* @cdev: embedded cdev
5252
* @num_users: number of active users of this device
53-
* @c_no_user: completion used when unregistering the device
53+
* @c_no_users: completion used when unregistering the device
5454
* @mutex: mutex protecting @num_users and @idr
5555
* @idr: register of user space shared memory objects allocated or
5656
* registered on this device
@@ -132,14 +132,14 @@ struct tee_driver_ops {
132132
/* Size for TEE revision string buffer used by get_tee_revision(). */
133133
#define TEE_REVISION_STR_SIZE 128
134134

135+
#define TEE_DESC_PRIVILEGED 0x1
135136
/**
136137
* struct tee_desc - Describes the TEE driver to the subsystem
137138
* @name: name of driver
138139
* @ops: driver operations vtable
139140
* @owner: module providing the driver
140141
* @flags: Extra properties of driver, defined by TEE_DESC_* below
141142
*/
142-
#define TEE_DESC_PRIVILEGED 0x1
143143
struct tee_desc {
144144
const char *name;
145145
const struct tee_driver_ops *ops;
@@ -187,7 +187,7 @@ struct tee_protmem_pool_ops {
187187
* Allocates a new struct tee_device instance. The device is
188188
* removed by tee_device_unregister().
189189
*
190-
* @returns a pointer to a 'struct tee_device' or an ERR_PTR on failure
190+
* @returns: a pointer to a 'struct tee_device' or an ERR_PTR on failure
191191
*/
192192
struct tee_device *tee_device_alloc(const struct tee_desc *teedesc,
193193
struct device *dev,
@@ -201,7 +201,7 @@ struct tee_device *tee_device_alloc(const struct tee_desc *teedesc,
201201
* tee_device_unregister() need to be called to remove the @teedev if
202202
* this function fails.
203203
*
204-
* @returns < 0 on failure
204+
* @returns: < 0 on failure
205205
*/
206206
int tee_device_register(struct tee_device *teedev);
207207

@@ -254,14 +254,14 @@ void tee_device_set_dev_groups(struct tee_device *teedev,
254254
* tee_session_calc_client_uuid() - Calculates client UUID for session
255255
* @uuid: Resulting UUID
256256
* @connection_method: Connection method for session (TEE_IOCTL_LOGIN_*)
257-
* @connectuon_data: Connection data for opening session
257+
* @connection_data: Connection data for opening session
258258
*
259259
* Based on connection method calculates UUIDv5 based client UUID.
260260
*
261261
* For group based logins verifies that calling process has specified
262262
* credentials.
263263
*
264-
* @return < 0 on failure
264+
* @returns: < 0 on failure
265265
*/
266266
int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method,
267267
const u8 connection_data[TEE_IOCTL_UUID_LEN]);
@@ -295,7 +295,7 @@ struct tee_shm_pool_ops {
295295
* @paddr: Physical address of start of pool
296296
* @size: Size in bytes of the pool
297297
*
298-
* @returns pointer to a 'struct tee_shm_pool' or an ERR_PTR on failure.
298+
* @returns: pointer to a 'struct tee_shm_pool' or an ERR_PTR on failure.
299299
*/
300300
struct tee_shm_pool *tee_shm_pool_alloc_res_mem(unsigned long vaddr,
301301
phys_addr_t paddr, size_t size,
@@ -318,14 +318,16 @@ static inline void tee_shm_pool_free(struct tee_shm_pool *pool)
318318
* @paddr: Physical address of start of pool
319319
* @size: Size in bytes of the pool
320320
*
321-
* @returns pointer to a 'struct tee_protmem_pool' or an ERR_PTR on failure.
321+
* @returns: pointer to a 'struct tee_protmem_pool' or an ERR_PTR on failure.
322322
*/
323323
struct tee_protmem_pool *tee_protmem_static_pool_alloc(phys_addr_t paddr,
324324
size_t size);
325325

326326
/**
327327
* tee_get_drvdata() - Return driver_data pointer
328-
* @returns the driver_data pointer supplied to tee_register().
328+
* @teedev: Pointer to the tee_device
329+
*
330+
* @returns: the driver_data pointer supplied to tee_register().
329331
*/
330332
void *tee_get_drvdata(struct tee_device *teedev);
331333

@@ -334,7 +336,7 @@ void *tee_get_drvdata(struct tee_device *teedev);
334336
* TEE driver
335337
* @ctx: The TEE context for shared memory allocation
336338
* @size: Shared memory allocation size
337-
* @returns a pointer to 'struct tee_shm' on success or an ERR_PTR on failure
339+
* @returns: a pointer to 'struct tee_shm' on success or an ERR_PTR on failure
338340
*/
339341
struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size);
340342

@@ -354,7 +356,7 @@ void tee_dyn_shm_free_helper(struct tee_shm *shm,
354356
/**
355357
* tee_shm_is_dynamic() - Check if shared memory object is of the dynamic kind
356358
* @shm: Shared memory handle
357-
* @returns true if object is dynamic shared memory
359+
* @returns: true if object is dynamic shared memory
358360
*/
359361
static inline bool tee_shm_is_dynamic(struct tee_shm *shm)
360362
{
@@ -370,7 +372,7 @@ void tee_shm_put(struct tee_shm *shm);
370372
/**
371373
* tee_shm_get_id() - Get id of a shared memory object
372374
* @shm: Shared memory handle
373-
* @returns id
375+
* @returns: id
374376
*/
375377
static inline int tee_shm_get_id(struct tee_shm *shm)
376378
{
@@ -382,7 +384,7 @@ static inline int tee_shm_get_id(struct tee_shm *shm)
382384
* count
383385
* @ctx: Context owning the shared memory
384386
* @id: Id of shared memory object
385-
* @returns a pointer to 'struct tee_shm' on success or an ERR_PTR on failure
387+
* @returns: a pointer to 'struct tee_shm' on success or an ERR_PTR on failure
386388
*/
387389
struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id);
388390

@@ -402,7 +404,7 @@ static inline bool tee_param_is_memref(struct tee_param *param)
402404
* teedev_open() - Open a struct tee_device
403405
* @teedev: Device to open
404406
*
405-
* @return a pointer to struct tee_context on success or an ERR_PTR on failure.
407+
* @returns: pointer to struct tee_context on success or an ERR_PTR on failure.
406408
*/
407409
struct tee_context *teedev_open(struct tee_device *teedev);
408410

0 commit comments

Comments
 (0)