From patchwork Tue Nov 9 07:02:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilias Apalodimas X-Patchwork-Id: 518034 Delivered-To: patch@linaro.org Received: by 2002:ad5:5208:0:0:0:0:0 with SMTP id p8csp1320120iml; Mon, 8 Nov 2021 23:02:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbXTha3n1CptM+9pYdz4/C8nTgZDW/dxey/vGnxqoLWoFS89b1i5mHrtHZ+cc8x1T4FnQK X-Received: by 2002:a50:da0a:: with SMTP id z10mr6935677edj.298.1636441377017; Mon, 08 Nov 2021 23:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636441377; cv=none; d=google.com; s=arc-20160816; b=vMkItzic5vaPvaoUfpGzszH7Fb2D0ZAH4rtMkNkv6xleqE7DiF5oH1IeK814uOzeaB Wws0uMqqizKbPYrA6on3YHhLi1lxa3V+HsKx5co6O6NeM9XxkNWA29fmLpmDPo6SZDbb G3MC+ClOgprL7jM1K3kAFB99jw2mfRsyT8cmRI54huOiN/jvQ8SkrmStOiY1e77tsU7w q3SjEULF9Z59ttERVVZrhJhZpJb66H7/dsszwCY6C0qQ6jNSYCETxUJL7PVsV0ZLEUQT iGejMaqiJl9JS4vhwg1viti6CiujWNUL1cxVrbUEnw46z4KuPnJYOBKdDoC5dlwr8xnN 2HXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=gZhDcb1qySaDmJmIf1A2fwciQBwofkesR+kR8EZazeE=; b=DKrelcaWDsOMrQ1WYGff5efdqgGy+9llz1GOpugJm6jWaa4f+Wqc+ICBZMkRBxB+EZ gtMuGd9u648sCcaTcL7SmfapsQiaStvLLxph2zQ9Z5TZ0wEhcwPWvaVgdJeAZOf3710/ x4jO9qKv74UklkORLSehjlaTmhI6BCtWwnLP5fT1kQhtPxMRIJQUG2q3Wx8guO6q3D1Q HB7hrhrDFh/W2wUSoR1Iz3oTnQSqcbA+qB3kYIi9RagFeKB1DuWAL+t7q3mWFXWt5Ifk wQ6jCc7R0nGa8Heo9c/dXeDIHC/cmFKOZfOXgKG5/+yGFNq6PzYMjdPad9v6Et1LgWpi ZoVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bTHLUmbk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id g4si28576915edv.455.2021.11.08.23.02.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 23:02:57 -0800 (PST) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bTHLUmbk; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9C5F5836EA; Tue, 9 Nov 2021 08:02:39 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="bTHLUmbk"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 67109836E5; Tue, 9 Nov 2021 08:02:34 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7929283695 for ; Tue, 9 Nov 2021 08:02:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x42e.google.com with SMTP id d27so31179176wrb.6 for ; Mon, 08 Nov 2021 23:02:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gZhDcb1qySaDmJmIf1A2fwciQBwofkesR+kR8EZazeE=; b=bTHLUmbkzzqJ+C5GzlosFgcu8h+ORaU2luIsHhuf6fXcwMbDWb/pSsb9QqJ4jNna6s wRuP9sgXrQiEKFEgd5ZY9EdZr14mqVbJ5IpN/sckzyPiBCbcPq6YqvH00khSHtqyUrKE 0XcBz+pdYDN960KaQZBvQXiFT/AJgqBj2QN+aq8v8j9VO0P80I20cnaACmeQ2y47F9d/ ZIXxKGgRBMoXY3J6fy4MJ/xIOq4uBmsvKct+RvvjCLJdjE8LK9Adu4FVfzpj1QD0Hi36 SVqePbpCu12hD0UDHaiiwoVRMONQGsgUB2QxobNvB+D9yCQRLMC+RsGQ1b+yYBMVpzNM FwUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gZhDcb1qySaDmJmIf1A2fwciQBwofkesR+kR8EZazeE=; b=5Jq/W81lqTYzcTdgit9H5pnS0eBsigLLIK296ysZiaNEsOu3drGCTP+hjHCuwLCNpC FD3oz9XSKT+cwW5iK7eJ9zx5rN4ioAGepAgaktL3q+0YV0ysQWuCmRyuMDhoQKPK0foE mfhjFLXnsY+4L/VWXBJi9oNIvoGZZEHyDeZ6tuDeQdyc95CZzgNR3L0y6/KEBD24OVQl RuKPH2zkioyFRuhbIaY0NlL2HqBWfnkWzIYuZkMsRjkqd9AAeQWv3BjY6MeLIX1l/5SA o9O9tKNCX/90ZcrrTVYfRdJOTK1eU5HTyj8bL6gkanjOTBkwVtzTnlSojMSR4fwHuNM5 hgLw== X-Gm-Message-State: AOAM532tSGerM3jnZwSZ0NzC6kQG7UoxsRrfKfp58Lopsv1brdwx4aQf rIjZzXam+nonQLUP7upxuQzGzYyFpqlWJg== X-Received: by 2002:adf:c986:: with SMTP id f6mr6988031wrh.216.1636441350020; Mon, 08 Nov 2021 23:02:30 -0800 (PST) Received: from apalos.home ([2a02:587:4627:18c0:2e56:dcff:fe9a:8f06]) by smtp.gmail.com with ESMTPSA id g5sm20897229wri.45.2021.11.08.23.02.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Nov 2021 23:02:29 -0800 (PST) From: Ilias Apalodimas To: u-boot@lists.denx.de Cc: trini@konsulko.com, Ilias Apalodimas , Simon Glass , Heinrich Schuchardt , Rick Chen , Sean Anderson , Heinrich Schuchardt , Masahisa Kojima Subject: [PATCH 2/8 v7] tpm: refactor function names for LPC based TPMs Date: Tue, 9 Nov 2021 09:02:16 +0200 Message-Id: <20211109070223.76456-3-ilias.apalodimas@linaro.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211109070223.76456-1-ilias.apalodimas@linaro.org> References: <20211109070223.76456-1-ilias.apalodimas@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Heinrich Schuchardt Signed-off-by: Ilias Apalodimas --- 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, };