]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commit
use alloc_file_type() and get_file_from_fd() in tpm_tis
authorJuergen Gross <jgross@suse.com>
Sun, 16 Jan 2022 08:33:20 +0000 (09:33 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 18 Jan 2022 18:26:43 +0000 (18:26 +0000)
commit75cbe52859b53fcb81fb0859ca51aec76605756e
tree492268730db34e1e2b008cbcd53111dec95f174b
parent0b4c24e0631bfe397be60b716f27e25334dc28a7
use alloc_file_type() and get_file_from_fd() in tpm_tis

Allocate a file type dynamically via alloc_file_type().

Instead of directly accessing the files[] array use get_file_from_fd().

Make some now local functions static and modify their prototypes to
match the file_ops requirements.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h
include/tpm_tis.h
lib/sys.c
tpm_tis.c