From patchwork Wed Apr 12 14:30:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 672640 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:184:0:0:0:0 with SMTP id p4csp370119wrx; Wed, 12 Apr 2023 07:31:20 -0700 (PDT) X-Google-Smtp-Source: AKy350bP5UnNct03w5WwPMjT2oLOTYISK79llzWBHOUKcQmnjQUIysGIfSy6GjA4B8xiwZqsGb5Y X-Received: by 2002:ad4:5de6:0:b0:56e:9986:4fa9 with SMTP id jn6-20020ad45de6000000b0056e99864fa9mr21984830qvb.7.1681309880004; Wed, 12 Apr 2023 07:31:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681309879; cv=none; d=google.com; s=arc-20160816; b=DMggzNM1L7yMgJ8jq/S0RfMJ1GWzIqmjb2nFxIBWSnvTxEmKNghnEsWW6Gh4v7sWL/ y9BcUMSOaktrnWdhqgVMrNipXDzvuXEk9sUpoY+Xr/Av0jVt1UO7uuffzoLkKKgTY1js N7af6wK4FRirznlV1QWVzl3hPMHD7L9aGshg1H1c1vqKc1U7GO9nT6Zer7qZqs47eP3T dTiOPEwxzUwezc6EH8JFN7b9TNwRKgD0VsxjDbO3Xmc1+EUDRBYUvkkqcbrt1y0X6n0e h3a1Vih1oFs++Dz3+Q8wy6MWrhKc0PAhP+r3aiDh6aA76cxo8nmlUxCrvKcwGK3Gk9WN w97w== 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=Pss8X7bgu3LOS8N22uSYRTMb3NQ6H4RT32F84vbK7nY=; b=xZCuJJfSaKffVu47Cv7KiugTeQ0wBxMLPbIYe2hTkL3HGSS/+ZxmZfzxReqWJPmys7 BLVVaXQgL+VcC+fIPngT3IwHItp+xyzImvGauXrNtmwENyxHPFOcLkFvA7RVPE5ZldGC KaYCuyxPoYbZvCu9ir7pncUhf1ozCTXe6I67E6+3/sA9Rf3TEDZPRytlmCTi55JLaKLI dd7BM129RoALFVoaxBcOl6smjEU2fqYaMxjXya33kKuF0gSG2CqHeUrXk5b9b2VGjghn ypya4wo+mOnnZ94C2/rFnsOYA4oMBkgUFCM9o97eh36jQTT+mcMDBmlinRIQM6p9VkQ8 APMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B8TJJX21; 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 2-20020a05621420a200b005a43f5dbec5si10607939qvd.356.2023.04.12.07.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:31:19 -0700 (PDT) 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=B8TJJX21; 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 8564D85F9F; Wed, 12 Apr 2023 16:30:36 +0200 (CEST) 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="B8TJJX21"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D27485F95; Wed, 12 Apr 2023 16:30:20 +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=-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-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (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 82AF885F7A for ; Wed, 12 Apr 2023 16:30:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=vladimir.zapolskiy@linaro.org Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4eb36162b32so279456e87.1 for ; Wed, 12 Apr 2023 07:30:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681309816; x=1683901816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Pss8X7bgu3LOS8N22uSYRTMb3NQ6H4RT32F84vbK7nY=; b=B8TJJX211mbvfHkfUvErgBcBsIzIV1ITt1KtOiIPfhSB+GJluwS5eM1IxQsSHfOf14 dAJtRMj7+Rxr6lr6nG3k5lqvVduJtSr+r4ayFS1RBkKddCobP9lMiKcrsCFMHZEIzStD HEvAwQqlXqtBpJRpgtHONwx0qN9R0w1d9Ya6inNbYuMCDV4DuaGsWjiQRO0amOJgEE/J 2om4vDHX/A+uMpQDOjb3cyAgrPhURGooS5R7K/NKSNp1QMdl6CwrmenH+UXxmUvXmSvq sliFgWriyyfFssLZrsPF3SMwK/+1JDYfxB1uc33C/ghlSRy8CufdeI4QynywOXid7FfD +3eA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681309816; x=1683901816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Pss8X7bgu3LOS8N22uSYRTMb3NQ6H4RT32F84vbK7nY=; b=uqiB/HWE2dFbtxkR8y6u9aqisQZNvolS7iBPhplMDEP7M2+RIcFfIB6HH42zo78dcf dLxTMJQNWKWBhL3dWvmurC8YLtdCWfFhcs1wFDkdWjF216k1T5HIezZR4XCAlkj0j7QH Ul46ed8VcanMysAZ22up/hnnHKrpiAldOta6f8tPG6S3TOxKCM23nV3XosfY7hOllDy/ YtcbDNTfYlfpdKgixGwzA1S/ELk/+Vwwow9y6JEiAk3YMy0BcTTMQW/VIborPT/i+lnB skROwfJiEvZyv6DnHlGRAhHS39OOlxzlR4ow2zGsVwu3LDmcTaSqcO5hOdLD52kKlgij tVZQ== X-Gm-Message-State: AAQBX9eQFIDOW+XekIhV+u5hjtYoCoHXiwdA5wL/OJWb/VPWEICIMuMP 3atOlrMhPKY3qqZ7BLfO6tQprA== X-Received: by 2002:a2e:b890:0:b0:295:9c3f:e30c with SMTP id r16-20020a2eb890000000b002959c3fe30cmr751512ljp.1.1681309816152; Wed, 12 Apr 2023 07:30:16 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id z2-20020a2e8e82000000b002a7729eea3dsm1861054ljk.88.2023.04.12.07.30.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 07:30:15 -0700 (PDT) From: Vladimir Zapolskiy To: Tom Rini , Simon Glass Cc: Ramon Fried , Konrad Dybcio , Bhupesh Sharma , u-boot@lists.denx.de Subject: [PATCH v2 5/9] serial: msm-geni: fix code indentation Date: Wed, 12 Apr 2023 17:30:02 +0300 Message-Id: <20230412143006.80946-6-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230412143006.80946-1-vladimir.zapolskiy@linaro.org> References: <20230412143006.80946-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean This a cosmetic change, which corrects code indentation in a few places. Signed-off-by: Vladimir Zapolskiy Reviewed-by: Konrad Dybcio --- drivers/serial/serial_msm_geni.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index 8fd769eb4d0d..55dd9188a56c 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -130,8 +130,8 @@ struct msm_serial_data { }; unsigned long root_freq[] = {7372800, 14745600, 19200000, 29491200, - 32000000, 48000000, 64000000, 80000000, - 96000000, 100000000}; + 32000000, 48000000, 64000000, 80000000, + 96000000, 100000000}; /** * get_clk_cfg() - Get clock rate to apply on clock supplier. @@ -160,8 +160,7 @@ static int get_clk_cfg(unsigned long clk_freq) * * Return: frequency, supported by clock supplier, multiple of clk_freq. */ -static int get_clk_div_rate(u32 baud, - u64 sampling_rate, u32 *clk_div) +static int get_clk_div_rate(u32 baud, u64 sampling_rate, u32 *clk_div) { unsigned long ser_clk; unsigned long desired_clk; @@ -228,7 +227,7 @@ static inline u32 geni_se_get_tx_fifo_width(long base) } static inline void geni_serial_baud(phys_addr_t base_address, u32 clk_div, - int baud) + int baud) { u32 s_clk_cfg = 0; @@ -268,7 +267,7 @@ int msm_serial_setbrg(struct udevice *dev, int baud) * reached. */ static bool qcom_geni_serial_poll_bit(const struct udevice *dev, int offset, - int field, bool set) + int field, bool set) { u32 reg; struct msm_serial_data *priv = dev_get_priv(dev);