diff options
| author | Jens Wiklander <[email protected]> | 2024-08-14 17:35:57 +0200 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2024-08-26 13:16:20 +0200 |
| commit | c30b855e814d9094e369a19fbd86c9bb5badc154 (patch) | |
| tree | 6960724b5bf521a3afa9be4a55edf73ebd6a8f85 /include/linux | |
| parent | 7852028a35f03e04c9cdc92fd26894cca4a8a4de (diff) | |
tee: add tee_device_set_dev_groups()
Add tee_device_set_dev_groups() to TEE drivers to supply driver specific
attribute groups. The class specific attributes are from now on added
via the tee_class, which currently only consist of implementation_id.
Signed-off-by: Jens Wiklander <[email protected]>
Reviewed-by: Sumit Garg <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tee_core.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/tee_core.h b/include/linux/tee_core.h index efd16ed52315..a38494d6b5f4 100644 --- a/include/linux/tee_core.h +++ b/include/linux/tee_core.h @@ -155,6 +155,18 @@ int tee_device_register(struct tee_device *teedev); void tee_device_unregister(struct tee_device *teedev); /** + * tee_device_set_dev_groups() - Set device attribute groups + * @teedev: Device to register + * @dev_groups: Attribute groups + * + * Assigns the provided @dev_groups to the @teedev to be registered later + * with tee_device_register(). Calling this function is optional, but if + * it's called it must be called before tee_device_register(). + */ +void tee_device_set_dev_groups(struct tee_device *teedev, + const struct attribute_group **dev_groups); + +/** * tee_session_calc_client_uuid() - Calculates client UUID for session * @uuid: Resulting UUID * @connection_method: Connection method for session (TEE_IOCTL_LOGIN_*) |