tpm: cr50: Add a comment for cr50_priv
authorSimon Glass <sjg@chromium.org>
Wed, 8 Apr 2020 22:57:23 +0000 (16:57 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 16 Apr 2020 06:36:28 +0000 (14:36 +0800)
Add a comment for the private structure

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/tpm/cr50_i2c.c

index b30f55b40d3afb1025a16291e384ffbca7ef0f18..c1d2d2fa38104336b5a7c38716e878c54f047f88 100644 (file)
@@ -34,6 +34,15 @@ enum {
        CR50_MAX_BUF_SIZE = 63,
 };
 
+/**
+ * struct cr50_priv - Private driver data
+ *
+ * @ready_gpio: GPIO to use to check if the TPM is ready
+ * @irq: IRQ to use check if the TPM is ready (has priority over @ready_gpio)
+ * @locality: Currenttly claimed locality (-1 if none)
+ * @vendor: vendor: Vendor ID for TPM
+ * @use_irq: true to use @irq, false to use @ready if available
+ */
 struct cr50_priv {
        struct gpio_desc ready_gpio;
        struct irq irq;