History

tee: remove redundant teedev in struct tee_shm

The ctx element in struct tee_shm is always valid. So remove the now redundant teedev element.

Jens Wiklander committed 7 years ago

Commit 5271b201 parent f1bbace2 files · +3 −8Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/tee_drv.h+1−3
@@ -167,8 +167,7 @@ void tee_device_unregister(struct tee_device *teedev); · 166 unmodified lines
167 167
168/**168/**
169 * struct tee_shm - shared memory object169 * struct tee_shm - shared memory object
170 * @teedev: device used to allocate the object170 * @ctx: context using the object
171 * @ctx: context using the object, if NULL the context is gone
172 * @paddr: physical address of the shared memory171 * @paddr: physical address of the shared memory
173 * @kaddr: virtual address of the shared memory172 * @kaddr: virtual address of the shared memory
174 * @size: size of shared memory173 * @size: size of shared memory
@@ -183,7 +182,6 @@ void tee_device_unregister(struct tee_device *teedev); · 8 unmodified lines
183 * subsystem and from drivers that implements their own shm pool manager.182 * subsystem and from drivers that implements their own shm pool manager.
184 */183 */
185struct tee_shm {184struct tee_shm {
186 struct tee_device *teedev;
187 struct tee_context *ctx;185 struct tee_context *ctx;
188 phys_addr_t paddr;186 phys_addr_t paddr;
189 void *kaddr;187 void *kaddr;