Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp753432pxk; Thu, 17 Sep 2020 15:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJL2LQl3WhBi2uPNGSgYOSL7TdEQSoMNSrG21qSu/jCd5wG44K7M5lx90C0PawUHH8/rfy X-Received: by 2002:aa7:cd85:: with SMTP id x5mr6381391edv.0.1600382149899; Thu, 17 Sep 2020 15:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600382149; cv=none; d=google.com; s=arc-20160816; b=EDIyFJVa3e3q/ELyNkrqExTfU34z2r2hFPtBYYEsHARDkKjrVbEfxO93osmJIDlAx9 ZexG1109HHGQF53TJFiGPCvyHFeJGo6Apr5oN2vhtwpNGSK1k/tYgyamTwkkgfGta1EX QhRFYOaJaD0dn6gBeJ6BrS2KOcimY5uXeQHE2cH7v2q/IWkmoQEOKWckYDlqF/Go1ojs AkmHI5Jqp0zRQftjqZov97rEi2+9O25jeGFMXsnI8j8qxOKBiyVU5H2kOehGOXsouCRM jHEMrAAQtgqr/E5hx1km27FH7ypR6qyxTnfrVeuFvI0bqp75NAD93vWdEPxTXPvKAVKi c2Jw== 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=f1lR/xMxS7TuD/pvQ6t5dkp0B4wiaDJqHKow3/G4jU0=; b=NPM3+pVGZLoEckB1lGSZVGzrpyzKALCvgWs8Lj82OafrlWuyaLiestXb8gCrejk0j4 3iItiMt8YveJ1z6AIOPdFi2NmqRdCqd4cIn+KJLpo43PI6al7w3QtH2DrJI/KLnpSkPu v3Hqwb0CHwCwg/CLfz2Ut9vuMwDoyvLVE4VLLQMr1zPWs/wK1JYAzSJ5Pn8AQTP2xnmD ZUMzMI1XVH3CRqROYHGTLFoXtatS/X4DHSx1MrpSsipFvw2A71Sn1RsVwPF+1kK7pOxQ tgpxj37jRK0+HeS7Qo7YZefNO3g4tyCxffD7IUMACH3P9/Gpm4YtZWjSLIxezA8tpHme Z9oA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nic.cz header.s=default header.b=TjMBLYd9; 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 q24si862547edi.78.2020.09.17.15.35.26; Thu, 17 Sep 2020 15:35:49 -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=TjMBLYd9; 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 S1726447AbgIQWeS (ORCPT + 99 others); Thu, 17 Sep 2020 18:34:18 -0400 Received: from mail.nic.cz ([217.31.204.67]:35812 "EHLO mail.nic.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbgIQWeJ (ORCPT ); Thu, 17 Sep 2020 18:34:09 -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 7772A140A77; Fri, 18 Sep 2020 00:33:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1600382037; bh=NfiKEaEUAJO2bf4FPxglihEBwosP24Qc7Px6/FPjqjo=; h=From:To:Date; b=TjMBLYd9ZwxWUxikfygf7/XJq3tMys5NcxULPRx90XroUUj4XPZeGvopUF+Vzlmxx /TaoiaFUjBm4IDDXQeidcUyioZMVRZixmqF/0ExR8IUhiJtFQbV38FoBHfdlxXhvoa XyAETDA/JN3b3ge7g/oHFpfwAqd/BxQ74hV5NdQA= 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?= , Linus Walleij , Bjorn Andersson Subject: [PATCH leds v2 23/50] leds: pm8058: cosmetic: use reverse christmas tree Date: Fri, 18 Sep 2020 00:33:11 +0200 Message-Id: <20200917223338.14164-24-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: Linus Walleij Cc: Bjorn Andersson --- drivers/leds/leds-pm8058.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/leds/leds-pm8058.c b/drivers/leds/leds-pm8058.c index 193780a8c0522..80db7e2de420c 100644 --- a/drivers/leds/leds-pm8058.c +++ b/drivers/leds/leds-pm8058.c @@ -29,9 +29,9 @@ static void pm8058_led_set(struct led_classdev *cled, enum led_brightness value) { struct pm8058_led *led; - int ret = 0; unsigned int mask = 0; unsigned int val = 0; + int ret = 0; led = container_of(cled, struct pm8058_led, cdev); switch (led->ledtype) { @@ -56,8 +56,8 @@ static void pm8058_led_set(struct led_classdev *cled, static enum led_brightness pm8058_led_get(struct led_classdev *cled) { struct pm8058_led *led; - int ret; unsigned int val; + int ret; led = container_of(cled, struct pm8058_led, cdev); @@ -89,12 +89,12 @@ static int pm8058_led_probe(struct platform_device *pdev) { struct led_init_data init_data = {}; struct device *dev = &pdev->dev; + enum led_brightness maxbright; struct pm8058_led *led; struct device_node *np; - int ret; struct regmap *map; const char *state; - enum led_brightness maxbright; + int ret; led = devm_kzalloc(dev, sizeof(*led), GFP_KERNEL); if (!led) -- 2.26.2