From patchwork Tue Dec 19 14:23:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 180977 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1974354dyi; Tue, 19 Dec 2023 06:26:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFtPbrZgjCG/q4vaIjZ4J73DR1gdqndgv1tALaX8F/p6iREYcB80kfY288TBOHfin+GeyBb X-Received: by 2002:a05:6a00:349b:b0:6d7:bfb2:f289 with SMTP id cp27-20020a056a00349b00b006d7bfb2f289mr4544884pfb.51.1702996004149; Tue, 19 Dec 2023 06:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996004; cv=none; d=google.com; s=arc-20160816; b=egtSGJCZmSELWF/1joJsdOu4BmYpVA255g1kdfc3BhbDCOlNUjCiXG3iBsrjtwXBpf zVDJx7rhrZSg15kSf67vPoa58MMZwWIoq1AQJR/D9q7tGq2L03mzAmN2xO3q6yxMpRAZ V4nm82J20bCjXaggjhVcpdkRb/5e/gQl8ZRE6a1QjvO76IG2CD84o7obYm3mwLixuf59 c0S/w5ESpgIS8Vg8m1E8Z3/8dZ5DLFBXVv1IBM7XU2vMc5ZCEhhL4bJpJFA3TN7wYUil GFQTaL74lZk6vccsXYo21DSSz5qdcQK5xCRarltGnXxltSoEzftkOu7R+OwL8syFjUx9 39AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=m0ixPtoAPGKvK37J2//i5TEfAHvCqoh+89EGr3jhVvs=; fh=u8rLQsUjk/DQ68o09SM+wx8FxqDFcT3zeQdKot9Eyy4=; b=HfF9O/4Ma7y1p9p6vsu7jDNhz68JRGB0mP7IPzBswca1sFDgqL4L5dbBKBw9GeCLOQ exHhWbdzzcb0BFNHjNp8GecAAKRVJtMxidxOUbbWROJBBJFegWq0rz97FWMNKNPhdp9e 8eQy6cmjIQRve5IVN8Y79GFd1EKInSuskJua5F/cpQNDNTV4Ql0YTK03lFrrVFmXCAsD E7ACO9e7VxiaeFkrYnXNRwOwy8OnDptNF1EWZqWybhjI1QI5BjIS+OE/kChQdOW2QRyF jm7NhDBMYvgSrS8y/wgIyZGTslCR4ieUtNAPh/g4owfDEtrt1ME7dtIw0irwdti7F3Ym 0r4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=HrdbuES1; spf=pass (google.com: domain of linux-kernel+bounces-5347-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5347-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ka9-20020a056a00938900b006cde1cef718si4345019pfb.322.2023.12.19.06.26.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:26:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5347-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=HrdbuES1; spf=pass (google.com: domain of linux-kernel+bounces-5347-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5347-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F3D728356A for ; Tue, 19 Dec 2023 14:24:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 319AF1C6B4; Tue, 19 Dec 2023 14:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="HrdbuES1" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52D751B288 for ; Tue, 19 Dec 2023 14:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-336695c4317so2213110f8f.3 for ; Tue, 19 Dec 2023 06:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1702995807; x=1703600607; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=m0ixPtoAPGKvK37J2//i5TEfAHvCqoh+89EGr3jhVvs=; b=HrdbuES1NGfwpowO7HGB7Jqz39EI2lOXKUviEuq/dwNfLnQhkKMcaxe5Rt2KHH0xYA mb9JwllXypjYLiZGREbFoPVQ/rZ3+c2X29f2k7lt9gbSd3PS7J08UFZa6ImoMxf/r2HT fNnj+PaFsy3yiM2wdYG7e3ooU+ly9RsfTKB3jZsDBOvXzNXHHph3JeJWrHJTi4tVZWZ8 sYdwz55wfwnL/sHUHIU5OxW1MkFiswC5H+s44xYzUbWJLmuu9d1w0N4knLPR/U5Imt5C HPs9yGDZ5kQQYu4bzhxQ4vqngKByIDMfsG7O7vCYzp1sIaz3RD0Xz2RZFQd3a0y5lbms UHQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702995807; x=1703600607; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=m0ixPtoAPGKvK37J2//i5TEfAHvCqoh+89EGr3jhVvs=; b=OUfsX/CJkjs5Iq9RiP/KIqjqIKK8tfpxu6Ic54zBp1dOdgbosXS2FzmIN6DF6CmBN/ mevjQHNw4GLs4vsnQ2JTauz4iEaxM6FeqVyDEnzf5JQVeKFYE7tYFzxuABa9OcUX51UZ ewiIw3ynaB9nKVKlcPt4Z+BzxrspOvkXyyOTZ4C/lRQSKNUP1L94PtC3ko+C8pg1HSZr UbsJKF35CED7vpUZsKD4oqTFmNXEW/T1mGpuriBJNvYyP+dK9uTfkOb0QUKBm0IiODbR 9/aCT4E613V9p+xeflv4cifnK5V3Evm2IlcBT0bSHji04LcXzD1KKrSjtLyjy79cB7av eRgg== X-Gm-Message-State: AOJu0Yyw2+D8mWxhu2f1xYl2JpiuwKPoU0paAxZB5bofJunIi27uKCx8 uVMnR+wHcSchJgDBn06dOZHOFw== X-Received: by 2002:a05:6000:1d84:b0:336:1fcf:5aec with SMTP id bk4-20020a0560001d8400b003361fcf5aecmr9838671wrb.55.1702995807441; Tue, 19 Dec 2023 06:23:27 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:bfd0:6ab0:50e2:7f18]) by smtp.gmail.com with ESMTPSA id e32-20020a5d5960000000b003366e3b434bsm3038375wri.65.2023.12.19.06.23.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:23:27 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 1/2] gpiolib: drop tabs from local variable declarations Date: Tue, 19 Dec 2023 15:23:22 +0100 Message-Id: <20231219142323.28929-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785720737737270472 X-GMAIL-MSGID: 1785720737737270472 From: Bartosz Golaszewski Older code has an annoying habit of putting tabs between the type and the name of the variable. This doesn't really add to readability and newer code doesn't do it so make the entire file consistent. While at it: convert 'unsigned' to 'unsigned int'. Signed-off-by: Bartosz Golaszewski Reviewed-by: Andy Shevchenko --- drivers/gpio/gpiolib.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index c9ca809b55de..c3704d32afdd 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1049,8 +1049,8 @@ EXPORT_SYMBOL_GPL(gpiochip_add_data_with_key); void gpiochip_remove(struct gpio_chip *gc) { struct gpio_device *gdev = gc->gpiodev; - unsigned long flags; - unsigned int i; + unsigned long flags; + unsigned int i; down_write(&gdev->sem); @@ -2186,10 +2186,10 @@ EXPORT_SYMBOL_GPL(gpiochip_remove_pin_ranges); */ static int gpiod_request_commit(struct gpio_desc *desc, const char *label) { - struct gpio_chip *gc = desc->gdev->chip; - int ret; - unsigned long flags; - unsigned offset; + struct gpio_chip *gc = desc->gdev->chip; + int ret; + unsigned long flags; + unsigned int offset; if (label) { label = kstrdup_const(label, GFP_KERNEL); @@ -2301,9 +2301,9 @@ int gpiod_request(struct gpio_desc *desc, const char *label) static bool gpiod_free_commit(struct gpio_desc *desc) { - bool ret = false; - unsigned long flags; - struct gpio_chip *gc; + bool ret = false; + unsigned long flags; + struct gpio_chip *gc; might_sleep(); @@ -2577,8 +2577,8 @@ int gpio_set_debounce_timeout(struct gpio_desc *desc, unsigned int debounce) */ int gpiod_direction_input(struct gpio_desc *desc) { - struct gpio_chip *gc; - int ret = 0; + struct gpio_chip *gc; + int ret = 0; VALIDATE_DESC(desc); gc = desc->gdev->chip; @@ -2927,7 +2927,7 @@ static int gpio_chip_get_value(struct gpio_chip *gc, const struct gpio_desc *des static int gpiod_get_raw_value_commit(const struct gpio_desc *desc) { - struct gpio_chip *gc; + struct gpio_chip *gc; int value; gc = desc->gdev->chip; @@ -3222,7 +3222,7 @@ static void gpio_set_open_source_value_commit(struct gpio_desc *desc, bool value static void gpiod_set_raw_value_commit(struct gpio_desc *desc, bool value) { - struct gpio_chip *gc; + struct gpio_chip *gc; gc = desc->gdev->chip; trace_gpio_value(desc_to_gpio(desc), 0, value); @@ -4709,13 +4709,13 @@ core_initcall(gpiolib_dev_init); static void gpiolib_dbg_show(struct seq_file *s, struct gpio_device *gdev) { - struct gpio_chip *gc = gdev->chip; - struct gpio_desc *desc; - unsigned gpio = gdev->base; - int value; - bool is_out; - bool is_irq; - bool active_low; + struct gpio_chip *gc = gdev->chip; + struct gpio_desc *desc; + unsigned int gpio = gdev->base; + int value; + bool is_out; + bool is_irq; + bool active_low; for_each_gpio_desc(gc, desc) { if (test_bit(FLAG_REQUESTED, &desc->flags)) { From patchwork Tue Dec 19 14:23:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 180978 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp1974404dyi; Tue, 19 Dec 2023 06:26:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWoUE/gy+7WL5oZwaAVpwZ5d3WHieB8VUi145qAK25jY8AU4llMjLvIVZnVHPACh9ruml+ X-Received: by 2002:a05:6a20:da8b:b0:194:bce6:27d7 with SMTP id iy11-20020a056a20da8b00b00194bce627d7mr309228pzb.59.1702996008765; Tue, 19 Dec 2023 06:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702996008; cv=none; d=google.com; s=arc-20160816; b=eeBxrreJhnnLITov1Nn4K7v34w9c3GrWJCAOhdP9/Z1m2EmMbdJ/fqSRIlGD3gMjqE otSMrVXyIhc9ZUaszg+08tp5wejXHr88Jx4oNIRB/lBrXajbDy7JuKFY4n/tSKVwdXOV 4p1Ai43ta1TMj/tzzU5JGmlpV8eCaX58bxSK4EYEPUCAsZKljSXZ8A5VQRUOWfbJYzDA ajwjlzGPGMteP/bt3Yk7E0NXud8GXJ5WquMHneWrJCc0hQxq/TR4Oceg+zNENKxjPgeQ s5X9GvRFBgrwVfsVJkcfpM6/U6kAdamx+wcqBKGE8FX8PSn/WMiqb0Sf/g82E7WerWpO jXHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=gfcLeZaLTjQTB/4CmKh3Sp+MO7DUd7IqjLS//Br89XY=; fh=u8rLQsUjk/DQ68o09SM+wx8FxqDFcT3zeQdKot9Eyy4=; b=ds5EAgmUy7P6kqo9uAUDJ4d1vbifOEB7cPlb4rNP+Ny71hmhcZATYQysi8cPiWTdSr dtBLPGaoS8mpUznB/J4VWpsM9Xx+N3c/IdT46eVZEhnIuO74kcaHa8Wf/norBXKWPTK1 cdOreKZi1gY51TGHgBT4oW0MeDFpwDZc0E+UifR435kGVS85+Idlqq4ltK2IGCoK3OjU rlNO4HUWuA045rYeUYaTY10TdJkifNXL2SAYWenIpZ1LS4YfzLLcP74mIjwWg0rtor2e eQU4PVUHYupeqPInw3hHL5oDBqQKXB3T7FjiKH2LdRM76Pdz7mW8qRNgx5mpJPGSPRql RTYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Jy98Jn5W; spf=pass (google.com: domain of linux-kernel+bounces-5348-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5348-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z5-20020a656645000000b005bd3da15474si19091745pgv.839.2023.12.19.06.26.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:26:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5348-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=Jy98Jn5W; spf=pass (google.com: domain of linux-kernel+bounces-5348-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5348-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 6BC4C284C57 for ; Tue, 19 Dec 2023 14:24:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD2C51A731; Tue, 19 Dec 2023 14:23:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="Jy98Jn5W" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2E73D1B27B for ; Tue, 19 Dec 2023 14:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40c3fe6c08fso53083375e9.1 for ; Tue, 19 Dec 2023 06:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1702995808; x=1703600608; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gfcLeZaLTjQTB/4CmKh3Sp+MO7DUd7IqjLS//Br89XY=; b=Jy98Jn5W6y412GDrYTU2jFV0K49tWvISwdcLJilwDtnEkZvwuMWoAGQFBmf5CjCJOb lRHxBVq16bZ/QZzXAVuqvyr3LdWnWPKkL8OUNqiPM0kQcL0+xj8qW1EdlGYCMginAfLD M4wp2wch/JXDa8sUwIGORMBpVa+2Zg3ez9WrpsILWR8BOQy2MgaZuJ2Wh/PoKK4L6RJl 6vwzB5XF5NFliLGLSOClnsVRCKDt7WXGPZ31R/v2t7wh7NkIwAFqE/aCQo3WA5W2r20M jaBzNPGW9qkGwZ8dzhjyNprrE4yhv2R7OWSe9ZFei80L//Duwi300i1LxjvXFC1MmorI HpmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702995808; x=1703600608; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gfcLeZaLTjQTB/4CmKh3Sp+MO7DUd7IqjLS//Br89XY=; b=AufKlIZSjM0bPBxj6appHbtm9wfpXE4vPJLhNT8gy/7LeRbuwPZ199BEEC12aoDbvc bIr/bTZrk0Cbcgqs9uRUYyxUrDyeBPP6w4p78j6aL09GKaUsc0u0E+W12VJRHG/SIQDN iTFDopPPDvWidbyTzMpesj40LfOwoLcGwlhfblgmbzBIKSNJDnOowKMrtiAiZvBpQFf9 yq1cF1163k61xJ1HqvcbOtKCNHbec9Pfrd9oYieKiRUX586CxXSk0mtNn4YmUC21XQ2L 3/qTQxD6w0hThTj+x01IQwLqn3Mfudfx3SISo462dgwo5g0wRtIhiYv6iEYvoFr3LgeJ 2tcw== X-Gm-Message-State: AOJu0YyqxLeYxGgafb4v0tCT0+HsSu824/M9hGnT+OTUZOyXxyPf5E6a 6ZtEKweLmfW2wxLWe0+STIPIdcXTa0M5DfXvBV0= X-Received: by 2002:a05:600c:1f8e:b0:40c:53c2:d7ec with SMTP id je14-20020a05600c1f8e00b0040c53c2d7ecmr4293373wmb.97.1702995808437; Tue, 19 Dec 2023 06:23:28 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:bfd0:6ab0:50e2:7f18]) by smtp.gmail.com with ESMTPSA id e32-20020a5d5960000000b003366e3b434bsm3038375wri.65.2023.12.19.06.23.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 06:23:27 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH 2/2] gpio: sysfs: drop tabs from local variable declarations Date: Tue, 19 Dec 2023 15:23:23 +0100 Message-Id: <20231219142323.28929-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20231219142323.28929-1-brgl@bgdev.pl> References: <20231219142323.28929-1-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785720743079728458 X-GMAIL-MSGID: 1785720743079728458 From: Bartosz Golaszewski Older code has an annoying habit of putting tabs between the type and the name of the variable. This doesn't really add to readability and newer code doesn't do it so make the entire file consistent. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpiolib-sysfs.c | 50 ++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/drivers/gpio/gpiolib-sysfs.c b/drivers/gpio/gpiolib-sysfs.c index ae4fc013b675..f4be847a8e92 100644 --- a/drivers/gpio/gpiolib-sysfs.c +++ b/drivers/gpio/gpiolib-sysfs.c @@ -165,10 +165,10 @@ static irqreturn_t gpio_sysfs_irq(int irq, void *priv) /* Caller holds gpiod-data mutex. */ static int gpio_sysfs_request_irq(struct device *dev, unsigned char flags) { - struct gpiod_data *data = dev_get_drvdata(dev); - struct gpio_desc *desc = data->desc; - unsigned long irq_flags; - int ret; + struct gpiod_data *data = dev_get_drvdata(dev); + struct gpio_desc *desc = data->desc; + unsigned long irq_flags; + int ret; data->irq = gpiod_to_irq(desc); if (data->irq < 0) @@ -259,7 +259,7 @@ static ssize_t edge_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { struct gpiod_data *data = dev_get_drvdata(dev); - ssize_t status = size; + ssize_t status = size; int flags; flags = sysfs_match_string(trigger_names, buf); @@ -292,8 +292,8 @@ static DEVICE_ATTR_RW(edge); /* Caller holds gpiod-data mutex. */ static int gpio_sysfs_set_active_low(struct device *dev, int value) { - struct gpiod_data *data = dev_get_drvdata(dev); - struct gpio_desc *desc = data->desc; + struct gpiod_data *data = dev_get_drvdata(dev); + struct gpio_desc *desc = data->desc; int status = 0; unsigned int flags = data->irq_flags; @@ -331,9 +331,9 @@ static ssize_t active_low_show(struct device *dev, static ssize_t active_low_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) { - struct gpiod_data *data = dev_get_drvdata(dev); - ssize_t status; - long value; + struct gpiod_data *data = dev_get_drvdata(dev); + ssize_t status; + long value; status = kstrtol(buf, 0, &value); if (status) @@ -399,7 +399,7 @@ static const struct attribute_group *gpio_groups[] = { static ssize_t base_show(struct device *dev, struct device_attribute *attr, char *buf) { - const struct gpio_chip *chip = dev_get_drvdata(dev); + const struct gpio_chip *chip = dev_get_drvdata(dev); return sysfs_emit(buf, "%d\n", chip->base); } @@ -408,7 +408,7 @@ static DEVICE_ATTR_RO(base); static ssize_t label_show(struct device *dev, struct device_attribute *attr, char *buf) { - const struct gpio_chip *chip = dev_get_drvdata(dev); + const struct gpio_chip *chip = dev_get_drvdata(dev); return sysfs_emit(buf, "%s\n", chip->label ?: ""); } @@ -417,7 +417,7 @@ static DEVICE_ATTR_RO(label); static ssize_t ngpio_show(struct device *dev, struct device_attribute *attr, char *buf) { - const struct gpio_chip *chip = dev_get_drvdata(dev); + const struct gpio_chip *chip = dev_get_drvdata(dev); return sysfs_emit(buf, "%u\n", chip->ngpio); } @@ -441,10 +441,10 @@ static ssize_t export_store(const struct class *class, const struct class_attribute *attr, const char *buf, size_t len) { - long gpio; - struct gpio_desc *desc; - int status; - struct gpio_chip *gc; + long gpio; + struct gpio_desc *desc; + int status; + struct gpio_chip *gc; int offset; status = kstrtol(buf, 0, &gpio); @@ -493,9 +493,9 @@ static ssize_t unexport_store(const struct class *class, const struct class_attribute *attr, const char *buf, size_t len) { - long gpio; - struct gpio_desc *desc; - int status; + long gpio; + struct gpio_desc *desc; + int status; status = kstrtol(buf, 0, &gpio); if (status < 0) @@ -556,9 +556,9 @@ static struct class gpio_class = { */ int gpiod_export(struct gpio_desc *desc, bool direction_may_change) { - struct gpio_chip *chip; - struct gpio_device *gdev; - struct gpiod_data *data; + struct gpio_chip *chip; + struct gpio_device *gdev; + struct gpiod_data *data; unsigned long flags; int status; const char *ioname = NULL; @@ -730,8 +730,8 @@ EXPORT_SYMBOL_GPL(gpiod_unexport); int gpiochip_sysfs_register(struct gpio_device *gdev) { - struct device *dev; - struct device *parent; + struct device *dev; + struct device *parent; struct gpio_chip *chip = gdev->chip; /*