diff options
author | James Morris <james.morris@microsoft.com> | 2018-10-05 21:21:23 +0300 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-10-05 21:21:23 +0300 |
commit | b8d7b758145252e60ea0198e531a8b00a75b8895 (patch) | |
tree | 07d7b4bed9d8f9c7a24f8a88cb29364048c55cd6 /drivers/char/tpm/tpm-dev.c | |
parent | 2ecefa0a15fd0ef88b9cd5d15ceb813008136431 (diff) | |
parent | e487a0f52301293152a6f8c4e217f2a11dd808e3 (diff) | |
download | linux-b8d7b758145252e60ea0198e531a8b00a75b8895.tar.xz |
Merge tag 'tpmdd-next-20181005' of git://git.infradead.org/users/jjs/linux-tpmdd into next-tpm
tpmdd updates for Linux 4.20
From Jarkko:
These are the updates to v4.20. The only new feature is non-blocking
operation for /dev/tpm0.
Diffstat (limited to 'drivers/char/tpm/tpm-dev.c')
-rw-r--r-- | drivers/char/tpm/tpm-dev.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/char/tpm/tpm-dev.c b/drivers/char/tpm/tpm-dev.c index ebd74ab5abef..32f9738f1cb2 100644 --- a/drivers/char/tpm/tpm-dev.c +++ b/drivers/char/tpm/tpm-dev.c @@ -39,7 +39,7 @@ static int tpm_open(struct inode *inode, struct file *file) if (priv == NULL) goto out; - tpm_common_open(file, chip, priv); + tpm_common_open(file, chip, priv, NULL); return 0; @@ -48,12 +48,6 @@ static int tpm_open(struct inode *inode, struct file *file) return -ENOMEM; } -static ssize_t tpm_write(struct file *file, const char __user *buf, - size_t size, loff_t *off) -{ - return tpm_common_write(file, buf, size, off, NULL); -} - /* * Called on file close */ @@ -73,6 +67,7 @@ const struct file_operations tpm_fops = { .llseek = no_llseek, .open = tpm_open, .read = tpm_common_read, - .write = tpm_write, + .write = tpm_common_write, + .poll = tpm_common_poll, .release = tpm_release, }; |