tpm: Use the ops structure instead of a copy in tpm_vendor_specific

This builds on the last commit to use the ops structure in the core
and reduce the size of tpm_vendor_specific.

Signed-off-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Reviewed-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
Reviewed-by: Ashley Lai <adlai@linux.vnet.ibm.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
This commit is contained in:
Jason Gunthorpe
2013-11-26 13:30:44 -07:00
committato da Peter Huewe
parent 01ad1fa75d
commit 5f82e9f004
4 ha cambiato i file con 16 aggiunte e 33 eliminazioni

Vedi File

@@ -245,7 +245,7 @@ static ssize_t cancel_store(struct device *dev, struct device_attribute *attr,
if (chip == NULL)
return 0;
chip->vendor.cancel(chip);
chip->ops->cancel(chip);
return count;
}
static DEVICE_ATTR_WO(cancel);