Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp754582pxk; Thu, 17 Sep 2020 15:38:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvj9lGHva7Pzud4Hg46Ea6NjT3tzJzeEwPlWPJLSHgCzZMac80N1Bd2WnTnlxmufkl/Lj4 X-Received: by 2002:a17:906:fb15:: with SMTP id lz21mr20884847ejb.185.1600382299185; Thu, 17 Sep 2020 15:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600382299; cv=none; d=google.com; s=arc-20160816; b=qg4zw97yzMc7gUJYkjUxgwu5w2EyCv/rfFBw5g+cHbfhnDdTrrst8xkW33ZtEzTksJ VaFFSAkkKNvB7H+MNm9LUNkMXvtxittI8VjTIrbwqlL9xRQNHgdblNYYAa+jGyULW0T8 Ctv77EPq+fe9cIQvQ7gMLUfBwAZ5nBwBvUrL/asJeuyrn4AMhTPSc3fwW0Ct02rlFXAc lFl+X8JB5Jyp4i4KwjFhYaq19D5pcD9J/dkLsGydPPp/tJigyjE85h0GjtuMXP0OUXEe hwwZmfvrKb3djru2PAI0J+FuULZN4B8Qn40G9PNeEQF4Be+qmF3bhg31ulav4AZhDGzf gAfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sfizwveVm61gee8i4faWUQGBuCEI3xhtvtr05XbSHz4=; b=t7Kdn97s4Oaxv+D8jGQdgeEZ+ZYsdKob0YaHAp43twYEjlvePtirrDZalqRpNQC2n+ rvVgnsezYMDRvWKZ0YxUOm9XoVyxjahtHbsj5a6nsAhu8k5sZAIowr9+9w41pOUqxE/k R57JIOQcJ027BYdZ57n0APfsCqJHWhaoxC8exjGWj4SgGNAzQGBeYt7fDF86xpMUPHQz qAtzbft8B1FHwCzHhtXbVK/aA4WMb5V6h2j4kFhScYH/C+j90md7xZCdRclsjIfFkTUl 1IFykRFxTNMSmTKx3Pgk9WZFgzwO/Gi6CMqaQYmO4yJ1gkH5KQhQI7CJmgpr/Frnh6wJ u9/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=uoU2uo5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id op27si889975ejb.413.2020.09.17.15.37.55; Thu, 17 Sep 2020 15:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=uoU2uo5Q; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nic.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726741AbgIQWfo (ORCPT + 99 others); Thu, 17 Sep 2020 18:35:44 -0400 Received: from lists.nic.cz ([217.31.204.67]:35870 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgIQWeL (ORCPT ); Thu, 17 Sep 2020 18:34:11 -0400 Received: from dellmb.labs.office.nic.cz (unknown [IPv6:2001:1488:fffe:6:cac7:3539:7f1f:463]) by mail.nic.cz (Postfix) with ESMTP id 8E2871419EB; Fri, 18 Sep 2020 00:33:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1600382038; bh=1hlwfk8rq8NSYp0jTDWjpaScS7LmAnksJzFjTkvBxBg=; h=From:To:Date; b=uoU2uo5Q8an32KPeW1WXHEZG/RVfvElSFTxdeCkY+RlY37dh+wwclFV6ZIUmIzchd wMhNyTnrbyI9vpspbZtqpviof7+9FSWh/2hW5xONMO+/rhWX8KuwPeX1x7lHTmLsWo WeF0CZle6ytahM7LvDK1ttCw1alxTj+w5Yff/5Fo= From: =?UTF-8?q?Marek=20Beh=C3=BAn?= To: linux-leds@vger.kernel.org Cc: Pavel Machek , Dan Murphy , =?UTF-8?q?Ond=C5=99ej=20Jirman?= , linux-kernel@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, =?UTF-8?q?Marek=20Beh=C3=BAn?= , "H . Nikolaus Schaller" , Grant Feng Subject: [PATCH leds v2 29/50] leds: is31fl319x: cosmetic: use reverse christmas tree Date: Fri, 18 Sep 2020 00:33:17 +0200 Message-Id: <20200917223338.14164-30-marek.behun@nic.cz> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200917223338.14164-1-marek.behun@nic.cz> References: <20200917223338.14164-1-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.nic.cz X-Spam-Status: No, score=0.00 X-Spamd-Bar: / X-Virus-Scanned: clamav-milter 0.102.2 at mail X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only a cosmetic change: use reverse christmas tree variables declaration. Signed-off-by: Marek BehĂșn Cc: H. Nikolaus Schaller Cc: Grant Feng --- drivers/leds/leds-is31fl319x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/leds/leds-is31fl319x.c b/drivers/leds/leds-is31fl319x.c index 1dae319b03d60..15bdbc6378d93 100644 --- a/drivers/leds/leds-is31fl319x.c +++ b/drivers/leds/leds-is31fl319x.c @@ -111,9 +111,9 @@ static int is31fl319x_brightness_set(struct led_classdev *cdev, cdev); struct is31fl319x_chip *is31 = led->chip; int chan = led - is31->leds; + u8 ctrl1 = 0, ctrl2 = 0; int ret; int i; - u8 ctrl1 = 0, ctrl2 = 0; dev_dbg(&is31->client->dev, "%s %d: %d\n", __func__, chan, brightness); @@ -340,12 +340,12 @@ static int is31fl319x_parse_and_register(struct device *dev, static int is31fl319x_probe(struct i2c_client *client, const struct i2c_device_id *id) { - struct is31fl319x_chip *is31; struct device *dev = &client->dev; struct gpio_desc *shutdown_gpio; + struct is31fl319x_chip *is31; + u32 aggregated_led_microamp; u32 audio_gain_db; int err; - u32 aggregated_led_microamp; if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) return -EIO; -- 2.26.2