Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp101316imj; Thu, 14 Feb 2019 16:15:22 -0800 (PST) X-Google-Smtp-Source: AHgI3IacFnZ9lm3l+vJuMQXA8F9qqYhxcVWSk2JOxNZmkFDJCd0bbyG+HesmjfFhBzyHE3ehsYhb X-Received: by 2002:a65:5bcc:: with SMTP id o12mr6352403pgr.304.1550189722026; Thu, 14 Feb 2019 16:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550189722; cv=none; d=google.com; s=arc-20160816; b=mGbiXriuL4wNd13mc5gPfTeUo338bk/W9z/zDqbSD8Xs89DLFsog5Z7/EO+SvZbWxo 7AoYIUBPGIxY6rC6W9cfNJjTuUlV24Z3PV0wY0AnGcOajP1GR32ZEIMELd+xJCTf/EqF /UK83zLZ8baId8Su1eCj4QPkKk2lfVg/7/zuQPDiBgoNKIaVa49gB3Mw2ZmilWMMtUIG Txj2X7PI9YZ9ZhuHPqC5YZt02fXED6paz5OfEzcM2RIje1O/yeD9GBwnqEL8P2E98FE7 94ZzOKzjocYq2kmDPqIzLSEO7pS4TlOAXvP1K6TV2qogXgGqE9moxNTUaJojMG5EF6PL +DQA== 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=uTYZ0vXP8sAs8gifFLvRMBmuXz5Fy14EY7Zl2hW8P1E=; b=iEiG0p4xdu4wRUPN3Iv3xHLzAca+t6C+laTD0IQPDDdzoBd1bHV0VKAHtytE6yelQC xsh0SD8ZeULZ///z2s26riXGKPsjM6u97qTzCCyIWNYnYvK2oVMVKaeKIKv1lrZHHipd VW3RYv18Yz/a6DffrX6XHRKItziyraAZWkDHr7rM6cbE0egYjEiRVjRvl7+qfD99wrVw 27+5S/K1Af9za7mxriYZCR226jkGOaLpCaNhO+ZqXNhyNUf6OL6CuJJmE9n1WvCAN3dy 2tqlB4HsnxZ17807Rji5NTHgWLrYADdmYvbgVCMUrJMEVW2XejtZCRomqP/3AZ68tjDQ L3wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=0658j7AC; 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 i66si3916806pfb.91.2019.02.14.16.15.06; Thu, 14 Feb 2019 16:15:22 -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=0658j7AC; 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 S2407424AbfBNOyF (ORCPT + 99 others); Thu, 14 Feb 2019 09:54:05 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41389 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403859AbfBNOxV (ORCPT ); Thu, 14 Feb 2019 09:53:21 -0500 Received: by mail-wr1-f66.google.com with SMTP id x10so6771053wrs.8 for ; Thu, 14 Feb 2019 06:53:20 -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=uTYZ0vXP8sAs8gifFLvRMBmuXz5Fy14EY7Zl2hW8P1E=; b=0658j7ACh1agWR//z8BaobHFmL7RX/R2bpEHD2W4/W00SBxksiZqRb2RgYchwsQFUA 2h8vnzEkbY21CvZIqmLIfpim5mSmwiAiVqIcbl4aXTxO/JgiNBSln91Sn+cM6oF9NR8L d1brm9EWaiRdgopV6BA2tgxKRvZhcdS79YIYn2gPOUbzOHrxe2W4olXUEOSSAijRssnD 9aPZnuA+xj+8X7IU5MWNtxMqTSFjF0WTn6pquyIwqLWwoBAbPTkA7vM6jqN6GOs3EqQ3 wSpvfc/QAlkxI4JLEzHGxZzk9Sn8S/YKjDjPNQy0hPY4BoBK5F7ebGtskEibZJ6+MODr XNPQ== 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=uTYZ0vXP8sAs8gifFLvRMBmuXz5Fy14EY7Zl2hW8P1E=; b=JxhWt5WtATawxXCVKH0N7u77X9HrSlGJsvxSV2PjNycG6sEu0+Z6AMXYMAtXLjUWxQ KfQ0UZKVQZ0+7hRBor0W07ydHTEpGzHyY0VtdunJK+Tgg1jGZKKMaXdusGLQWEza2NUG slqUvch8t0GL4nFsvU90k1Leo9O3d2XNiCxnVzb7ta8lSWdWjT32R3KYrRUCeS4PsrSJ PQzKOQji8Vfw4OBDMo67+Oz/WX8JrHTp42+V0+lVF+C1mrO8IbTk7tP3JfLVbiqv6RBf f1AwSF+bKmMXLEjiF8hyVP0/mkYDrFTESBpj/91tN1ycMqmzl9irgV9rp44PlssIByk5 SurA== X-Gm-Message-State: AHQUAuZT9ZHA2hXttL11nVuSXNmgkI/hMfPw6IVlsb/QAjO8QC7oxYRo 8q3PWWbAq2uNA5OQ+k1/5fXS2Q== X-Received: by 2002:a05:6000:1110:: with SMTP id z16mr3267768wrw.28.1550155999778; Thu, 14 Feb 2019 06:53:19 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id y20sm4181005wra.51.2019.02.14.06.53.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 14 Feb 2019 06:53:19 -0800 (PST) From: Bartosz Golaszewski To: Dmitry Torokhov , 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: [PATCH v4 31/37] ARM: davinci: cp-intc: improve coding style Date: Thu, 14 Feb 2019 15:52:25 +0100 Message-Id: <20190214145231.8750-32-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190214145231.8750-1-brgl@bgdev.pl> References: <20190214145231.8750-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 6ab56af3be6b..25221dfe8a20 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