From patchwork Tue Sep 22 18:45:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1369230 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Ko5jOwzv; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BwrD84P1fz9sTS for ; Wed, 23 Sep 2020 04:58:00 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 380F1826E3; Tue, 22 Sep 2020 20:49:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Ko5jOwzv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C8834823F9; Tue, 22 Sep 2020 20:47:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (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 70F0D825E9 for ; Tue, 22 Sep 2020 20:47:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x344.google.com with SMTP id u25so16600843otq.6 for ; Tue, 22 Sep 2020 11:47:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8Xmk2cyLuga8d+Y629BS1fYV81vbNK3flD5UxP8qd2A=; b=Ko5jOwzvpm1iWhAXAF2Jv8GFAi9qVG05JLcfSrgtNjgwqfeXhVHBTzG22TBDX8Dtqu xoz/nE+tvzuQaK3BfzmJEgAVNcrO3HgsFoT7rkpSzJoY+eex6YviVDNPEgjegUQL1/yq vTWtl/vPmZZxsaLjTltirrnWgYv6wdPS3BSmU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8Xmk2cyLuga8d+Y629BS1fYV81vbNK3flD5UxP8qd2A=; b=uGiwkxQqmerg8WOkVX9hFUbPrPhMj7gDuNNm0GRcPaIzS7gfMZkhdT+EI77KJgZ/2e IhmTKDz74j5lWJ5PfmskilsWqEZrpJfkTR7Qy7kNbyYRopESvNxQiZzIYFcuTwpM33b5 LgHmmhLkLBXmeSKhL5NTsxgCLblwFTGQnVnVIMLBzbPYRq9nAt7wwZflP8WODPXQLTu+ U1kihywyOp+BXjeCvrwADu+XqMt6L3nxlhWA1C3rjRtwSNoy+vMDIMbU241fIowr4R/v uO0eZeKPtFeT34Vnfibok0m1x79TO8U4RjLvZDlJ8Ks5orqu5dM6h9M82qdUV9I3MLQ2 aS5A== X-Gm-Message-State: AOAM532jkJ5IwzRNJM06ehObNPN/MoTH87TiQYkCwLL57lIISK6PQgcH paBSPzF//KxKq4XZznT+oAD36ol21kU4LyAY X-Google-Smtp-Source: ABdhPJx5IByTSrNcrF9fq0gD9hN4ETElyeS14XL9R6uDq3FcwyD0sgol1UdN+KQ1xfdIMITlr4L/Fw== X-Received: by 2002:a05:6830:1487:: with SMTP id s7mr3653157otq.225.1600800442144; Tue, 22 Sep 2020 11:47:22 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id q24sm7622663oij.19.2020.09.22.11.47.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 11:47:21 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Andy Shevchenko , Wolfgang Wallner , Bin Meng , Bernhard Messerklinger , Simon Glass Subject: [PATCH v4 59/59] acpi: Use I2cSerialBusV2() instead of I2cSerialBus() Date: Tue, 22 Sep 2020 12:45:44 -0600 Message-Id: <20200922184544.2920969-28-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.681.g6f77f65b4e-goog In-Reply-To: <20200922184544.2920969-1-sjg@chromium.org> References: <20200922184544.2920969-1-sjg@chromium.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.102.3 at phobos.denx.de X-Virus-Status: Clean Use the correct name of the ACPI structure being created. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch to use I2cSerialBusV2() instead of I2cSerialBus() include/acpi/acpi_device.h | 2 +- lib/acpi/acpi_device.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/acpi/acpi_device.h b/include/acpi/acpi_device.h index 007b7e7caf1..ed4acd912a1 100644 --- a/include/acpi/acpi_device.h +++ b/include/acpi/acpi_device.h @@ -413,7 +413,7 @@ int acpi_device_write_dsm_i2c_hid(struct acpi_ctx *ctx, /** * acpi_device_write_i2c_dev() - Write an I2C device to ACPI * - * This creates a I2cSerialBus descriptor for an I2C device, including + * This creates a I2cSerialBusV2 descriptor for an I2C device, including * information ACPI needs to use it. * * @ctx: ACPI context pointer diff --git a/lib/acpi/acpi_device.c b/lib/acpi/acpi_device.c index 8248664a10a..95dfac583fc 100644 --- a/lib/acpi/acpi_device.c +++ b/lib/acpi/acpi_device.c @@ -530,7 +530,7 @@ int acpi_device_write_dsm_i2c_hid(struct acpi_ctx *ctx, return 0; } -/* ACPI 6.3 section 6.4.3.8.2.1 - I2cSerialBus() */ +/* ACPI 6.3 section 6.4.3.8.2.1 - I2cSerialBusV2() */ static void acpi_device_write_i2c(struct acpi_ctx *ctx, const struct acpi_i2c *i2c) {