]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tee: tee_get_drvdata(): fix description of return value
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Jun 2022 11:43:53 +0000 (13:43 +0200)
committerJens Wiklander <jens.wiklander@linaro.org>
Fri, 8 Jul 2022 08:51:24 +0000 (10:51 +0200)
This patch fixes the description of tee_get_drvdata()'s return value.
It actually returns the driver_data pointer supplied to
tee_device_alloc() since the TEE subsystem was added to the kernel.

Fixes: 3d026017f4a6 ("tee: generic TEE subsystem")
Cc: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/tee_core.c

index af0f7c603fa46045fd1b4a9ba62ed38a82f1419f..98da206cd7615ba8a9269e2e31420ce9a1542b7d 100644 (file)
@@ -1073,7 +1073,7 @@ EXPORT_SYMBOL_GPL(tee_device_unregister);
 /**
  * tee_get_drvdata() - Return driver_data pointer
  * @teedev:    Device containing the driver_data pointer
- * @returns the driver_data pointer supplied to tee_register().
+ * @returns the driver_data pointer supplied to tee_device_alloc().
  */
 void *tee_get_drvdata(struct tee_device *teedev)
 {