Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2527561imj; Mon, 11 Feb 2019 04:28:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IbyLJ2LpVkHObHMGTE0z6rHJ0s2u2SWygu45bMHs2+8kByPT9OQJKd1VhRrFitnk9bJPtgU X-Received: by 2002:a17:902:7805:: with SMTP id p5mr34971424pll.261.1549888100748; Mon, 11 Feb 2019 04:28:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549888100; cv=none; d=google.com; s=arc-20160816; b=qhq0t2JZFDSKuYRJYPJmcg8DxwHwIECuW4uHeCdOgd5rbTfvqlJI1hto3Lpc3uF0p5 LMpLrhZTXN7lqCpUp/o6AMfJOsmgryLJlTmvRysShPfJjVDMLU9OORHgFINRm/jwyycl 8GQ85mS6qC4phnbYVMG9P3o3YfNRPjjArShykm6SFXBY0WvBLPtoXT1DYIZbgV7MgF3Q 2ngMhyXMFOO43QtqsXXc7Zy23kNe18cYqoqJBL6whGYedlNgJl0MBL/IN1+Hryh3NmsM SalSGjD8FT6cgYjERZTYDKPE+h7LZFxzsMq2TtUpRieQX0X2FGWmddcV4wxLD6yXBvF8 f6KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7gYlfZ8dUsAGabZoJfnAkrezi2SLK3ltNashAmxc40Y=; b=VnDO32fAYQpoX58gnm0mxy4MgaNDfGzd21G5gRFv44EyPgjhpw5sxj0OVWti01E9sc CgizZyy6EagoESSTISXO0NAuaZn2AAtqHRVEyFkarONWc9xfCvXQ+Q21VXG70gWWGvfo bIHW4LvNg3XUvMjyCwnkPW80QtrnC4hFhzdf5Mw6BU2U0KPAt9YrTVC8vaGDkuiKXAHI 9KkHHoWfOKUM5WZWIajvLwmjl1NAevGa1Er6bMNYX+/6E6ZuYpVdA5EdML4Yj9jVzta1 36tmfE7Z1rQkIybcYBTEp0PqZY0T8SfyavgQkYjGPUMQtopLj6Kr9ax0680yBR3mWSbJ LzHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=N48L8FUF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si2455394plq.159.2019.02.11.04.28.05; Mon, 11 Feb 2019 04:28:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=N48L8FUF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727424AbfBKM10 (ORCPT + 99 others); Mon, 11 Feb 2019 07:27:26 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:46936 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbfBKM0s (ORCPT ); Mon, 11 Feb 2019 07:26:48 -0500 Received: by mail-wr1-f68.google.com with SMTP id l9so4429768wrt.13 for ; Mon, 11 Feb 2019 04:26:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7gYlfZ8dUsAGabZoJfnAkrezi2SLK3ltNashAmxc40Y=; b=N48L8FUFoPpFOnAS0YTAWg2l0y48HLmUcYMfphxyLIFbMi+J20j/cmxn1D+Jr6TMkx C3nE+0fqWFgs9JxgI9hYR0VlnDKaCpcyam7BbB5+TP1PA1x3tSmiv9rbbOWxLFmKQXeb xt63EBA044XSKdXUkIFOOnHfpq6Z6cBCddV1LhDTUc5coR3GMuM9dm3aPHHHDGZuL5w0 dOsihb4Pch/ZKCm4c/KBadPHLUd3ek6Jm4jJe6//XIbYEt5vJs6PPFChh1ad1cnJm6/4 5omFC1Yty6qkq2YbNmK6wqnGhLim0Al572o+6tXE/7LhpbaK3gs+929Ms+Na53+WoWuW hvHw== 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=7gYlfZ8dUsAGabZoJfnAkrezi2SLK3ltNashAmxc40Y=; b=Bib8Bvt44B0aRkQF9oKqz2myWye3CxYaR2phx5fhU92GD7vHSMtONeChCKBO4S6lv5 hgl8LD6mWhBdpm1Lc9mr2qA6pM0JS0dZkYUSXZRUFp80XBegqMvFJ+VBP0QNJR3S0Sgz qOh3t+v7jwK9Xe5++vWFeFB4gGw4W16aojvVIbh6RoZs3mhy50Oi75ZVPmjV1miXOJsZ 8bUd/VKHLnAD9WSsWNwpkDp+TAPkqJomH7FGEK28VxV60MFLOM+jB1Ysi6gDUJQcRrf2 fBH4FJxjRJwJSlWwzpamnTZKQ/Zr8/qAJKJawq+8CfqIbkufZLKTUPRsvRRycxe3oeWi tNTw== X-Gm-Message-State: AHQUAuY2Mw5Xvw4ZeypCUQ60YKdJTa07puNbGBFsLfRlIVk24p2L4TDT 19jzsO2KyPgDl79g1bm540mqVg== X-Received: by 2002:adf:f848:: with SMTP id d8mr29156469wrq.178.1549888006437; Mon, 11 Feb 2019 04:26:46 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id l20sm19494321wrb.93.2019.02.11.04.26.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Feb 2019 04:26:45 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , David Lechner Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [RESEND PATCH v2 27/33] ARM: davinci: cp-intc: improve coding style Date: Mon, 11 Feb 2019 13:26:00 +0100 Message-Id: <20190211122606.8662-28-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211122606.8662-1-brgl@bgdev.pl> References: <20190211122606.8662-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bartosz Golaszewski Drop tabs from variable initialization. Arrange variables in reverse christmas-tree order. Add a newline before a return. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/cp_intc.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp_intc.c index faf3d74d3719..f3787ae4cdbd 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c @@ -77,12 +77,12 @@ static void davinci_cp_intc_unmask_irq(struct irq_data *d) static int davinci_cp_intc_set_irq_type(struct irq_data *d, unsigned int flow_type) { - unsigned reg = BIT_WORD(d->hwirq); - unsigned mask = BIT_MASK(d->hwirq); - unsigned polarity = davinci_cp_intc_read( - DAVINCI_CP_INTC_SYS_POLARITY(reg)); - unsigned type = davinci_cp_intc_read( - DAVINCI_CP_INTC_SYS_TYPE(reg)); + unsigned int reg, mask, polarity, type; + + reg = BIT_WORD(d->hwirq); + mask = BIT_MASK(d->hwirq); + polarity = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_POLARITY(reg)); + type = davinci_cp_intc_read(DAVINCI_CP_INTC_SYS_TYPE(reg)); switch (flow_type) { case IRQ_TYPE_EDGE_RISING: @@ -150,6 +150,7 @@ static int davinci_cp_intc_host_map(struct irq_domain *h, unsigned int virq, irq_set_chip(virq, &davinci_cp_intc_irq_chip); irq_set_probe(virq); irq_set_handler(virq, handle_edge_irq); + return 0; } -- 2.20.1