All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: u-boot@lists.denx.de
Cc: trini@konsulko.com,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Simon Glass <sjg@chromium.org>,
	Heinrich Schuchardt <heinrich.schuchardt@canaonical.com>,
	Rick Chen <rick@andestech.com>, Sean Anderson <seanga2@gmail.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Masahisa Kojima <masahisa.kojima@linaro.org>
Subject: [PATCH 2/8 v7] tpm: refactor function names for LPC based TPMs
Date: Tue,  9 Nov 2021 09:02:16 +0200	[thread overview]
Message-ID: <20211109070223.76456-3-ilias.apalodimas@linaro.org> (raw)
In-Reply-To: <20211109070223.76456-1-ilias.apalodimas@linaro.org>

With the upcoming TPM2 API, some of the functions name are part of the new
header file.  So switch conflicting internal function names and defines.

Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canaonical.com>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
---
 drivers/tpm/tpm_tis_lpc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c
index 003c0d8816d0..13a133d58ebd 100644
--- a/drivers/tpm/tpm_tis_lpc.c
+++ b/drivers/tpm/tpm_tis_lpc.c
@@ -443,7 +443,7 @@ static int tpm_tis_lpc_open(struct udevice *dev)
 	return 0;
 }
 
-static int tpm_tis_get_desc(struct udevice *dev, char *buf, int size)
+static int tpm_tis_lpc_get_desc(struct udevice *dev, char *buf, int size)
 {
 	ulong chip_type = dev_get_driver_data(dev);
 
@@ -458,7 +458,7 @@ static int tpm_tis_get_desc(struct udevice *dev, char *buf, int size)
 static const struct tpm_ops tpm_tis_lpc_ops = {
 	.open		= tpm_tis_lpc_open,
 	.close		= tpm_tis_lpc_close,
-	.get_desc	= tpm_tis_get_desc,
+	.get_desc	= tpm_tis_lpc_get_desc,
 	.send		= tis_senddata,
 	.recv		= tis_readresponse,
 };
-- 
2.33.1


  parent reply	other threads:[~2021-11-09  7:02 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09  7:02 [PATCH 0/8 v7] TPM cleanups and MMIO driver Ilias Apalodimas
2021-11-09  7:02 ` [PATCH 1/8 v7] tpm: refactor function names and macros for infineon v1.2 TPM Ilias Apalodimas
2021-11-09  7:02 ` Ilias Apalodimas [this message]
2021-11-09  7:02 ` [PATCH 3/8 v7] tpm2: Introduce TIS tpm core Ilias Apalodimas
2021-11-13 18:14   ` Simon Glass
2021-11-13 18:15   ` Simon Glass
2021-11-15 11:09     ` Ilias Apalodimas
2021-11-09  7:02 ` [PATCH 4/8 v7] tpm2: Add a TPMv2 MMIO TIS driver Ilias Apalodimas
2021-11-09  7:02 ` [PATCH 5/8 v7] tpm: Use the new API on tpm2 spi driver Ilias Apalodimas
2021-11-09  7:02 ` [PATCH 6/8 v7] configs: Enable tpmv2 mmio on qemu for arm/arm64 Ilias Apalodimas
2021-11-09  7:02 ` [PATCH 7/8 v7] doc: qemu: Add instructions for swtpm usage Ilias Apalodimas
2021-11-13 18:14   ` Simon Glass
2021-11-15 11:10     ` Ilias Apalodimas
2022-01-27 15:06       ` Simon Glass
2022-01-27 22:08         ` Heinrich Schuchardt
2021-11-09  7:02 ` [PATCH 8/8 v7] MAINTAINERS: Add entry for TPM drivers Ilias Apalodimas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211109070223.76456-3-ilias.apalodimas@linaro.org \
    --to=ilias.apalodimas@linaro.org \
    --cc=heinrich.schuchardt@canaonical.com \
    --cc=masahisa.kojima@linaro.org \
    --cc=rick@andestech.com \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.