From patchwork Thu Mar 30 19:47:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Zapolskiy X-Patchwork-Id: 668616 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp116022wrt; Thu, 30 Mar 2023 12:52:40 -0700 (PDT) X-Google-Smtp-Source: AK7set+NBxFoVw4zpizL8JaiNm8RaGcjBrIKEZ3KvRK8eWYW3cRmDtyvJJlvXAJ9VdoWwnUaTt+V X-Received: by 2002:a05:6a20:4d97:b0:bc:80bd:462d with SMTP id gj23-20020a056a204d9700b000bc80bd462dmr22995621pzb.46.1680205959791; Thu, 30 Mar 2023 12:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680205959; cv=none; d=google.com; s=arc-20160816; b=b8RsjFdq5X/ePucHnkAVbjXQzvZl1Q2Jby1pjfnxxusPE90XcpqhlX9+6fbZTHEYAn pBk4LiPm73W1RAdTx8wTsDR3BN64m3KlOKRI3swx77qWZTrW0KG+NQL/SKr3it0phTwh BV3tmZkNKZ44GIVsyDurQntP0VGRWOQ/GLCxUffuxhm/2F80aBvn4pDeIBuxbJmCHtRT aknViPyvGG59JGgoWc/nM1QAZFVRpb5Aiq7S+ariDhfyHT9o0PZ58a6HQZ6BNGZMbjNV BccZhA64+uNoUHEdvQaWJwv78UbnKslxAJwh/gIyxMCYONWQb+N+h7BOzOZkDvx7O6vf HKGQ== 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=hOGcOdvTOsTiUC/izO9Mb9GEbqPAEwTkctGdmrUqj2Y=; b=gekIhqGCfXVq7pug3pmLaIs7GZ6bJrY5Y0i42e04ShpwNn2e3j2PUcsHn9IeVvG+1X wkI8QKpp9TwAliXuBg72VATcDzF//Ka+Jc3oxNhvTrmw95wBnT4sNowRuuYW/Ett6rVR cOO+wv845Pe2L34/TuK4alTiOp+KjS/1n5cpttrEHeDbxMg8SFCjl3y44radCquhSKFD R1qZTOnf0eK2aroVBfW977uBSQ+19TY3MML0mERHrISixNjf+oDzi8zK2QAUjxvN3oSm O0JOv80pHrmX2M2dFyKF4kEbsOyyYJP3FkOcl++ME6I1KfHTGWCajFse4PndAPdPiQHm cS5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aGxOapN6; 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 b15-20020a63e70f000000b0050beb3fe626si451302pgi.13.2023.03.30.12.52.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 12:52:39 -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=aGxOapN6; 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 76160861A4; Thu, 30 Mar 2023 21:52:07 +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="aGxOapN6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AA12B85F13; Thu, 30 Mar 2023 21:47:54 +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-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) (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 6CAE085F06 for ; Thu, 30 Mar 2023 21:47:46 +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-lj1-x236.google.com with SMTP id bx10so2482504ljb.8 for ; Thu, 30 Mar 2023 12:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680205665; x=1682797665; 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=hOGcOdvTOsTiUC/izO9Mb9GEbqPAEwTkctGdmrUqj2Y=; b=aGxOapN6IWbEW1h3xG7m5UCvVppAhQt9UKXVjOT0fWswFF6Y7esl3ExVGPfOXtYFQD JH61b7ezQbEyGoU9Fg73vUSA6h2KQAYU+y0yHFJKEv1kLEU2hmkTsGC8korZwwSjXEFj VWNJ31Ux2QMC2Wv9FS0ij57BBND/MjdUwNa6rSTyFJMVTBdhOjX/CMN4uxG9Fifihncz vaQnZIkCV0g7i/3yco5uw37CWWvkeDt9W3Deb3da0lawLO8D903WZIuE+gSeAojLvEMi IflMwwzvdgJVaAHkmkx5nBw7mqmVnQx4OE4jELSV7UEPgMimXg8tALxLYso6cUaRqhxh CVUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680205665; x=1682797665; 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=hOGcOdvTOsTiUC/izO9Mb9GEbqPAEwTkctGdmrUqj2Y=; b=JA2Svilj9Ma1okHmiKSoidgFpluzcEBIjvA1U+BlIiBnXTfvgrgV5CjbkQpscXSWQd I2Kdsa+6sV0cE/fgY3xPYquTRjW2SCTIJYykcqvxz86FHvlriJBs2ipBPgxduLqgzz55 DP+8O2NiTsOTjo5YzQcrdLJg4zOcvEXF8uWhWEQzIw8yDK4QrtBNhQLU9wuL2RqQzFOe IiZZOUrt0a/JOXa4qt5Lwf+HF5n/Zh1WrXogAslpZ+Rv1ag5EuzbYq2onXNohfvjEeeT SX9EVfobd39onrbM5EOVcezoBKP9HWty7+OOFbaqww6Y4qEAz6oZ5uihT1qyrERh0NCi QEQw== X-Gm-Message-State: AAQBX9d7hxhQjj2Al0k/2pYrcTqHb7Cw9pEZBK7KbDKkuTQCUDyUoM36 oM8d0ixfA9qhtAnGMx5MMVX6fA== X-Received: by 2002:a2e:bc05:0:b0:29b:55bc:2bb3 with SMTP id b5-20020a2ebc05000000b0029b55bc2bb3mr8455628ljf.3.1680205665645; Thu, 30 Mar 2023 12:47:45 -0700 (PDT) Received: from localhost.localdomain (88-112-131-206.elisa-laajakaista.fi. [88.112.131.206]) by smtp.gmail.com with ESMTPSA id i19-20020a2e8093000000b0029f3e2efbb9sm46674ljg.90.2023.03.30.12.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Mar 2023 12:47:44 -0700 (PDT) From: Vladimir Zapolskiy To: Tom Rini , Simon Glass Cc: Ramon Fried , Konrad Dybcio , Bhupesh Sharma , u-boot@lists.denx.de Subject: [PATCH 4/6] serial: msm-geni: fix code indentation Date: Thu, 30 Mar 2023 22:47:34 +0300 Message-Id: <20230330194736.2400593-5-vladimir.zapolskiy@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230330194736.2400593-1-vladimir.zapolskiy@linaro.org> References: <20230330194736.2400593-1-vladimir.zapolskiy@linaro.org> MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 30 Mar 2023 21:50:39 +0200 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 1b12fdfbdafc..c9813f06ace7 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);