From patchwork Thu Aug 29 17:43:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riyan Dhiman X-Patchwork-Id: 13783525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92BB9C87FCD for ; Thu, 29 Aug 2024 17:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LRPGfBMGZzpvPkj/HqPh800wLxA7h+m99bFRb1aqa/o=; b=hJ/Pnu6fxNlmN9CQMZy3I8DD7g Frj2JWFEt2JHIwShoaibgyRRQXq6MH36FaKTs3i2MAXEB7mcF+LYZ2hfV63h97soIjZ5j2V2fOfEt ynKB0595TfxeRadTJzxwAzVXnO4b1h2qljaS8zxPUUbIszDJ3Pa9BJ/1ZpKJHM8HoEXiVA07A52Fd nozY6SgzcQz5RpekJ1geuFvo5h77pRNKcHtPWCQ5IJQT+dHCFzJjJLGBINLhMyXWBC1A57xGkULNQ IqqiMoo7lTL2OGr+u5wrwTxD7EInr3etMi5ZW9MjJpANAu6UR/eFEebSaIuJ77gHk2MoVIP0THgeh r/fSGxPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjjDS-000000034Q5-1dbf; Thu, 29 Aug 2024 17:45:50 +0000 Received: from mail-pg1-x52a.google.com ([2607:f8b0:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sjjCZ-000000034Gf-1K9J for linux-arm-kernel@lists.infradead.org; Thu, 29 Aug 2024 17:44:56 +0000 Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so605867a12.1 for ; Thu, 29 Aug 2024 10:44:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724953494; x=1725558294; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LRPGfBMGZzpvPkj/HqPh800wLxA7h+m99bFRb1aqa/o=; b=PbYsv1ozahtYsU5ssNKflvGAYcHBvm83JgmSlgkbcAEaFduTHORyUcZDQQUibgVAy9 dk804Nakhi4VrxluxutRvZPdbKkGi0Hss5NUJcHkJS5HZ9zN9Rzrd3SlKAnGoUvhb1Hj lGkTU5dVmpbYTArWVck4Kl5W/mf6EqXyLLopB8Ojal/R/ngkcbtAbAXelIDHS7vDbpWw N5R2xMxl4kTRk4PdZXLgf6Pvzj+0lSc2NfmUmHCsdrK+cgO3UWjIeN5E5Zh7PCMKCO1H IaFpyQmrW5Uwj6qJUOFkuyu76EV0pzBF+3RXM8d/M/yfGavH85j9F4EaUVfd0WWC+ceG Ys8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724953494; x=1725558294; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LRPGfBMGZzpvPkj/HqPh800wLxA7h+m99bFRb1aqa/o=; b=SgNpQQxVcJwROeUVbpK0OjwwosjPKYPv+YtWMG4D8R8L4RhKC2fjjt9O86Mv3KvZ1e VbYl465PHI9AqWn0l2h5Vg1Wxp13QYn2uNoa33ZtyvLVeaoGoY5ccO1IdmmK77ZwQFoF fdaZkq4k/SqaSdGtB3dzXMrqbM150WqOzEzL8T7kkq7IXWe8rYsFgtnelrNaWuzyuG70 pP4OpvOSwhbWV/B8gQ1wWxRL1qRnk67JVIdmkeMp/fxCXD4e895EY68noReBc9B5Kcqm OEdI3SYNKDJPmfNdWzjpnzbbUreLAwzxL4Me3XDt/XXKJF9jQD6A5E7r+1E5RLbCqLN2 t26w== X-Forwarded-Encrypted: i=1; AJvYcCWVhGTwZQpxQ46gTjGgGggqocEA0sWONY+22/uNMSJV6Mr7UqPHbIQ3ifs83+kknZa/UtiFSQPAj0mlztQsiWIB@lists.infradead.org X-Gm-Message-State: AOJu0Ywj8sV6zKhzA1POfp+T+rs7FZe4KpcfkkGwMq/E/jsiv0uhPWUc knHRVjvHhgBUXC6AADj+HW0vMRfxWdWRILLfaFFUT5iE6/OKUE3+ X-Google-Smtp-Source: AGHT+IFWvCE+TxB4cBY4LyUs2M3RnA+2kHuup3XTetabP3uNyeOUqA4NGlbr3xcEbFr4QmhuNdkzmA== X-Received: by 2002:a17:902:e74a:b0:1fe:d72d:13e1 with SMTP id d9443c01a7336-205168e4310mr31015465ad.30.1724953493746; Thu, 29 Aug 2024 10:44:53 -0700 (PDT) Received: from fedora.. ([106.219.166.11]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-205152b1546sm14075635ad.18.2024.08.29.10.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 10:44:53 -0700 (PDT) From: Riyan Dhiman To: lpieralisi@kernel.org, guohanjun@huawei.com, sudeep.holla@arm.com, rafael@kernel.org Cc: linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Riyan Dhiman Subject: [PATCH v2] ACPI: arm64: Fix some parenthesis alignment coding style issues Date: Thu, 29 Aug 2024 23:13:30 +0530 Message-ID: <20240829174329.3917-3-riyandhiman14@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240829_104455_378563_84CAE4AA X-CRM114-Status: GOOD ( 17.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adhere to Linux kernel coding style. Issue reported by checkpatch: - CHECK: Alignment should match open parenthesis It has no functional changes. Signed-off-by: Riyan Dhiman --- drivers/acpi/arm64/amba.c | 5 ++--- drivers/acpi/arm64/apmt.c | 4 ++-- drivers/acpi/arm64/iort.c | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/drivers/acpi/arm64/amba.c b/drivers/acpi/arm64/amba.c index 1350083bce5f..8d27d86ee052 100644 --- a/drivers/acpi/arm64/amba.c +++ b/drivers/acpi/arm64/amba.c @@ -33,8 +33,7 @@ static void amba_register_dummy_clk(void) clk_register_clkdev(amba_dummy_clk, "apb_pclk", NULL); } -static int amba_handler_attach(struct acpi_device *adev, - const struct acpi_device_id *id) +static int amba_handler_attach(struct acpi_device *adev, const struct acpi_device_id *id) { struct acpi_device *parent = acpi_dev_parent(adev); struct amba_device *dev; @@ -94,7 +93,7 @@ static int amba_handler_attach(struct acpi_device *adev, ret = amba_device_add(dev, &iomem_resource); if (ret) { dev_err(&adev->dev, "%s(): amba_device_add() failed (%d)\n", - __func__, ret); + __func__, ret); goto err_free; } diff --git a/drivers/acpi/arm64/apmt.c b/drivers/acpi/arm64/apmt.c index bb010f6164e5..74e8dc33241b 100644 --- a/drivers/acpi/arm64/apmt.c +++ b/drivers/acpi/arm64/apmt.c @@ -48,7 +48,7 @@ static int __init apmt_init_resources(struct resource *res, trigger = (trigger == ACPI_APMT_OVFLW_IRQ_FLAGS_MODE_LEVEL) ? ACPI_LEVEL_SENSITIVE : ACPI_EDGE_SENSITIVE; irq = acpi_register_gsi(NULL, node->ovflw_irq, trigger, - ACPI_ACTIVE_HIGH); + ACPI_ACTIVE_HIGH); if (irq <= 0) { pr_warn("APMT could not register gsi hwirq %d\n", irq); @@ -132,7 +132,7 @@ static int __init apmt_init_platform_devices(void) while (offset < end) { apmt_node = ACPI_ADD_PTR(struct acpi_apmt_node, apmt, - offset); + offset); fwnode = acpi_alloc_fwnode_static(); if (!fwnode) diff --git a/drivers/acpi/arm64/iort.c b/drivers/acpi/arm64/iort.c index 1b39e9ae7ac1..369a3b506711 100644 --- a/drivers/acpi/arm64/iort.c +++ b/drivers/acpi/arm64/iort.c @@ -374,7 +374,7 @@ static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node, struct acpi_iort_id_mapping *map; if (!node->mapping_offset || !node->mapping_count || - index >= node->mapping_count) + index >= node->mapping_count) return NULL; map = ACPI_ADD_PTR(struct acpi_iort_id_mapping, node, @@ -388,7 +388,7 @@ static struct acpi_iort_node *iort_node_get_id(struct acpi_iort_node *node, } parent = ACPI_ADD_PTR(struct acpi_iort_node, iort_table, - map->output_reference); + map->output_reference); if (map->flags & ACPI_IORT_ID_SINGLE_MAPPING) { if (node->type == ACPI_IORT_NODE_NAMED_COMPONENT || @@ -1128,8 +1128,8 @@ static void iort_iommu_msi_get_resv_regions(struct device *dev, for (i = 0; i < fwspec->num_ids; i++) { its_node = iort_node_map_id(iommu_node, - fwspec->ids[i], - NULL, IORT_MSI_TYPE); + fwspec->ids[i], + NULL, IORT_MSI_TYPE); if (its_node) break; } @@ -1429,7 +1429,7 @@ static void __init acpi_iort_register_irq(int hwirq, const char *name, if (irq <= 0) { pr_err("could not register gsi hwirq %d name [%s]\n", hwirq, - name); + name); return; } @@ -1561,7 +1561,7 @@ static void __init arm_smmu_v3_dma_configure(struct device *dev, * set numa proximity domain for smmuv3 device */ static int __init arm_smmu_v3_set_proximity(struct device *dev, - struct acpi_iort_node *node) + struct acpi_iort_node *node) { struct acpi_iort_smmu_v3 *smmu; @@ -1622,7 +1622,7 @@ static void __init arm_smmu_init_resources(struct resource *res, trigger = IORT_IRQ_TRIGGER_MASK(glb_irq[0]); acpi_iort_register_irq(hw_irq, "arm-smmu-global", trigger, - &res[num_res++]); + &res[num_res++]); /* Context IRQs */ ctx_irq = ACPI_ADD_PTR(u64, node, smmu->context_interrupt_offset); @@ -1727,9 +1727,9 @@ struct iort_dev_config { struct acpi_iort_node *node); int (*dev_count_resources)(struct acpi_iort_node *node); void (*dev_init_resources)(struct resource *res, - struct acpi_iort_node *node); + struct acpi_iort_node *node); int (*dev_set_proximity)(struct device *dev, - struct acpi_iort_node *node); + struct acpi_iort_node *node); int (*dev_add_platdata)(struct platform_device *pdev); }; @@ -1878,13 +1878,13 @@ static void __init iort_enable_acs(struct acpi_iort_node *iort_node) continue; parent = ACPI_ADD_PTR(struct acpi_iort_node, - iort_table, map->output_reference); + iort_table, map->output_reference); /* * If we detect a RC->SMMU mapping, make sure * we enable ACS on the system. */ if ((parent->type == ACPI_IORT_NODE_SMMU) || - (parent->type == ACPI_IORT_NODE_SMMU_V3)) { + (parent->type == ACPI_IORT_NODE_SMMU_V3)) { pci_request_acs(); acs_enabled = true; return;