Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7140560imu; Thu, 31 Jan 2019 05:43:01 -0800 (PST) X-Google-Smtp-Source: ALg8bN7XbHdwBtLePkO/Xh41lM4msTj9sCle0DVEv59+mcoZg+GBHwbDx3PRC+3e/JO4JJ+/IDob X-Received: by 2002:a63:a16:: with SMTP id 22mr31509958pgk.318.1548942181018; Thu, 31 Jan 2019 05:43:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548942180; cv=none; d=google.com; s=arc-20160816; b=KP5Htk4Mk+gjkep/JPST9z0RzOsysN+gGH9B2SwNiIScMQpAXGIEUNed5lnjiErbdc ovqhLqms0ChXRjo5iHFmx1eFMrtl5uN004fC1q6dwBU5LDX/ZKQExoG6OBHhKvVNOsDe 0zXbfUVwWBffqhaqFHIRVPTkzvHxRRojiW1254g2fb/1/sG0aZaPsnXJk0B6lOWZ4OfL kd8zm6iobik2CZTzuu4FvyvIEcL0XWDr/Xs77pnhXf2tEVP7Os9RqRjQ0PfyzwD6mIY0 iTxQMfbLWLmdqTxkCfdWJ+xCjUtkIjkMWGdvEZJRT7JfUI8p3fLOJZ/MP67KnOOnKrag nDXw== 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=k1HTTn1zj1MT4j+ZQRh8biG0PnZ1oRBNNapN+dBPCQc=; b=TK9Zy5t6+cqd53MlMNxR4aZ61sVeOvNnQjA5EojT3w1/2fi7ofsvLYfxa4qaoRFmN5 oQRUbMGAFHYLSJGcN7Nq67C7R4S5IdXwhigiZ6ABvRpcl4uEcKr7KkgvmantaqTTcR6x dtQqWjOG5aCsnmQI2u1841TEM89xLn3kBv5Kjgnd/Cw1oYDtAFX8Uz4xz/e+tf8bVG71 osSIhvRra0XE22jXMO1sBroeQisY1ZhdKJiybjJ4oUDLeafqG8Nzc36mzN9Vvnm5K79H f5+nk0lJoQP/WsG1QCjGWJtp95nMwmhNUKDeOUxSldyf6rUf58DXxMy24gmHF0P0IBJk iZMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=yXsqvJsg; 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 k134si4520664pga.401.2019.01.31.05.42.45; Thu, 31 Jan 2019 05:43:00 -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=yXsqvJsg; 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 S2387846AbfAaNkQ (ORCPT + 99 others); Thu, 31 Jan 2019 08:40:16 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:34475 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387808AbfAaNkO (ORCPT ); Thu, 31 Jan 2019 08:40:14 -0500 Received: by mail-wm1-f65.google.com with SMTP id y185so2149442wmd.1 for ; Thu, 31 Jan 2019 05:40:13 -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=k1HTTn1zj1MT4j+ZQRh8biG0PnZ1oRBNNapN+dBPCQc=; b=yXsqvJsgY0gXnH7Bhgddj++HS6M1/Mg/ntCKI/aXRWNdAEdnbki//I/WxKRK+J1W7s +xyKHgCe4FgJkPTgve5sxnI9ebBjgsRPR6qxic3g97nQ9J3ZhflMuop4CMqqB2kR5ZwE byqrOtHObAyNu38zWDaUfuGrSUaJ/ErrWnyFfJSpBj1sWI1/ITjec3IqRvP9uQfiY47V lJH9kqFEr5hhFw3gUej2hAL19d7saNoAVft4PEKt5ZqF/iFdCUwB7a0y+v1zOhfEmaVB Tn5g2gVzoWH4RkQlA3mXX5Ll8FFGYkXn+/kh6wTLpe3vscW33fHqxjYF6G4dEdNsdCYb UjqA== 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=k1HTTn1zj1MT4j+ZQRh8biG0PnZ1oRBNNapN+dBPCQc=; b=kZjVy/MS4le82Xpme3V8RrXRFfNsO2fFlzIyz8Li/W6GlqQtWN6KleX9E/UQoiPaw9 KLWh1zp/F+GY6Ju++q5tH5AvFXkmn1Fd5ITVokeE2+Jc2LpgdxEL607bkzQO9iZ0HRmX U+UT0V6dW5nVq93kSSMN2OVugulz3yFp5RqQRqd891EBG+dA78nwf/HH1IqPGUQR3oD5 e1YvPyekIcDCb1EPC6fVVJ/BofGEhvxog54rsT3LdwjtsrIMkx+3JxmFdBPKDSaq3dlw XXiLiVctUJi9ALiX8BR7skd18dVaiJnfcBa84cWuv6ek9Fg5P59NVn8HDeJXB2m24XuU Pycw== X-Gm-Message-State: AJcUukd7K0B/48HdM8f99wy8BGEGw18an/w2oYzEjj1oTfm74EiKophG BzEwD1o5QCdDn6lFKObDN20WEzfHFLg= X-Received: by 2002:a7b:c218:: with SMTP id x24mr29382352wmi.58.1548942012453; Thu, 31 Jan 2019 05:40:12 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id h10sm5479768wmf.44.2019.01.31.05.40.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 Jan 2019 05:40:11 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 26/35] ARM: davinci: cp-intc: improve coding style Date: Thu, 31 Jan 2019 14:39:19 +0100 Message-Id: <20190131133928.17985-27-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190131133928.17985-1-brgl@bgdev.pl> References: <20190131133928.17985-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 2ce0b7653c88..4cd515b507f4 100644 --- a/arch/arm/mach-davinci/cp_intc.c +++ b/arch/arm/mach-davinci/cp_intc.c @@ -76,12 +76,12 @@ static void 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: @@ -137,6 +137,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