From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 D73CA3921EC for ; Sat, 20 Jun 2026 12:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781956919; cv=none; b=pRcZOmhPBW4nSecCzcXc/xLmM8s7ZeY2nR8vdjK1f3GDCGrjlTJvS29dsjEe5Ru2P0ZbW/Z7bhLfXg1gFLNQqAGbXPCgjOQ3flkJzeYE6e12u/feYoT8kNozgTgZg+mz3u2IbqXdCUlYSnaVCin2FNHvehonxmZg293EMo1D0S4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781956919; c=relaxed/simple; bh=QmsmJNbC6vrfjAhrO7VSD4MkPVMyYErBRPBggPmIMc0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sZEDGdvo6wDt9sndKi1+A1AYaY9xlLgawdwNslY25srmCcS6mNN7xA4Nfj/n/1B6iQVNW9fIvKGoIGMUNe1oqYhMyIJ0Ry21laEyZsS2I80WsefVZuOoVvQK2b4expFasu38rLuyGA5VMLOLkpwy2uVRfKSn0iIxELFoF8ek38U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DcuKf453; arc=none smtp.client-ip=209.85.128.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DcuKf453" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-49241896317so7498005e9.3 for ; Sat, 20 Jun 2026 05:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781956916; x=1782561716; 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=QcajxXS1ayGKmTxTpDWGQNyzgm6vOaYeElta+TaNDR4=; b=DcuKf453D929rLXace9maiF+REY7TVbbtrrYNfcKPGtLMeYdPS8yjGkFgssL2y94Ow PcDRrvKekweU3Alpn7VhNbNI32HEM9cIu4pBn9y219ECetEo8wqnx1+PL8mDrIVPO53k wX6PSb0tZMlAeC0vWTGzHv9T8c4MKrXtohiUGsHZZiuSIu+GlUun/wEEEJOVKZnMI/w9 fNNtbYV7mrCDQ6hYtzbplHQidOBE6ryDt4VntvYyHYfmNkgEJFjE1gIpMR5SImZkf1/b c6I1gg40+BA0UiQVxJv/Y0nV3FPp34RizhuKZ4EJeuR1ZPFCuH7iWC0hKn13rLtvr48d D6GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781956916; x=1782561716; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=QcajxXS1ayGKmTxTpDWGQNyzgm6vOaYeElta+TaNDR4=; b=TXk3IYV50LuynGzdVgpBZ37ybTYtZRy7b4oyjijdmoZGX+5f4I+6jQjg4OlFqDMEGK RfWqYgbzLqQ2MXwA83JBxu7qRlICylCiya6bZlu7OTPxAptMdTuvS28eTbyLUjMZqo6D g8Ui8wOJ6qMsZOo6vPPdfbsKHL0km7zG595v8c8cjVykYSi8dpZLyzVwbHqZSHdojkB0 JvLVmnqx12HfoeB6lB7mVUDPHB+YHQp6OoV9vuAMsV5W9EiEf+zXd0xYabAtPZjGhXhB yDvPKFwC9S2XQ4N2KUyLZPeiFbmc9vq9/8HjUKlR0isgi1jrCTL3mq39k4/UzYrwmkCG MQRA== X-Forwarded-Encrypted: i=1; AFNElJ/D4ytuHJNFdLb08P7O67H32iLsKl0a+e24QpJzXZNVO9+2BJddT05VLeByoII0kLwmXfJ/IByCeXF86B8=@vger.kernel.org X-Gm-Message-State: AOJu0YyfC/RwN6V4SGm4bSjnzqiDp1RSELRprpKPj4keReUnzHGYKKSC dPyTChpDx6TIIuNykD7GtfCWYyJCL6EoQKBipUFFtZRNYAihXvD/eNPk X-Gm-Gg: AfdE7cnrkBokf89PZflz/immCJGCKRahMmuXHyI08G1dwwtxQ6lBRi4QN++5yvXkyyS 2QNZvUt/WXQPZNR54CnKFUHIGR251WwRjDGyiKD7ShtcBV/LgTwmriB+n9odZ+6VvY/Cu6sV24o MYylDBWpHb7r7lv/J0NJku0HdvXnUWuIVljVCc56uskGw0ZXx80mdciS9mu4C5ETxwQaInnRxKB m2S/2ufS2iuJTesrXBR0merDhuBreX5jl+IH3NivdmOL8K/Rr0K9d8DoZp0Uk0FR6qT8KXMrXmL jZi/oXAD74F93nfVZ/Gexz6TvOiJkCf7IZrUrxrXXQTRqKM2ZNC7OX+6BkcBTx3C7fjftITXIC8 SZscq+5rFF9E55irZHSLCXsIQ6UKEutZBU0mzjbtIt2X40ObhP0a5oOMPiYHdYCzFfMpEpXei/N Xb4p3yNR19+awcZ8QNyrdiw7yNOAyMuJCh1nLys03P4SMuSFG26GBIh/hUAow= X-Received: by 2002:a05:600c:3488:b0:492:4d82:70c1 with SMTP id 5b1f17b1804b1-4924d827119mr16214145e9.22.1781956916164; Sat, 20 Jun 2026 05:01:56 -0700 (PDT) Received: from camaron.. (147.red-88-9-50.dynamicip.rima-tde.net. [88.9.50.147]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49240ee9bc2sm93161565e9.1.2026.06.20.05.01.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Jun 2026 05:01:54 -0700 (PDT) From: Sergio Paracuellos To: linux-gpio@vger.kernel.org Cc: linusw@kernel.org, brgl@kernel.org, vicencb@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] gpio: mt7621: unify naming style in driver code Date: Sat, 20 Jun 2026 14:01:36 +0200 Message-ID: <20260620120136.2482872-5-sergio.paracuellos@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260620120136.2482872-1-sergio.paracuellos@gmail.com> References: <20260620120136.2482872-1-sergio.paracuellos@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There is a mix of 'mediatek' and 'mt7621' mix of prefix in different function names along the code of the driver. Be consistent using 'mt7621' for all function prefixes. Signed-off-by: Sergio Paracuellos --- drivers/gpio/gpio-mt7621.c | 40 +++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpio/gpio-mt7621.c b/drivers/gpio/gpio-mt7621.c index 1b0b5247d3c9..87086c322f08 100644 --- a/drivers/gpio/gpio-mt7621.c +++ b/drivers/gpio/gpio-mt7621.c @@ -68,7 +68,7 @@ mt7621_gpio_gc_to_priv(struct gpio_chip *gc) } static inline struct mtk_gc * -to_mediatek_gpio(struct gpio_chip *chip) +to_mt7621_gpio(struct gpio_chip *chip) { struct gpio_generic_chip *gen_gc = to_gpio_generic_chip(chip); @@ -137,7 +137,7 @@ mt7621_gpio_hwirq_to_offset(irq_hw_number_t hwirq, struct mtk_gc *bank) } static void -mediatek_gpio_irq_unmask(struct irq_data *d) +mt7621_gpio_irq_unmask(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); struct mtk_gc *rg = gpiochip_get_data(gc); @@ -159,7 +159,7 @@ mediatek_gpio_irq_unmask(struct irq_data *d) } static void -mediatek_gpio_irq_mask(struct irq_data *d) +mt7621_gpio_irq_mask(struct irq_data *d) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); struct mtk_gc *rg = gpiochip_get_data(gc); @@ -181,7 +181,7 @@ mediatek_gpio_irq_mask(struct irq_data *d) } static int -mediatek_gpio_irq_type(struct irq_data *d, unsigned int type) +mt7621_gpio_irq_type(struct irq_data *d, unsigned int type) { struct gpio_chip *gc = irq_data_get_irq_chip_data(d); struct mtk_gc *rg = gpiochip_get_data(gc); @@ -245,11 +245,11 @@ mt7621_gpio_irq_relres(struct irq_data *d) } static int -mediatek_gpio_xlate(struct gpio_chip *chip, +mt7621_gpio_xlate(struct gpio_chip *chip, const struct of_phandle_args *spec, u32 *flags) { int gpio = spec->args[0]; - struct mtk_gc *rg = to_mediatek_gpio(chip); + struct mtk_gc *rg = to_mt7621_gpio(chip); if (rg->bank != gpio / MTK_BANK_WIDTH) return -EINVAL; @@ -264,10 +264,10 @@ static const struct irq_chip mt7621_irq_chip = { .name = "mt7621-gpio", .irq_request_resources = mt7621_gpio_irq_reqres, .irq_release_resources = mt7621_gpio_irq_relres, - .irq_mask_ack = mediatek_gpio_irq_mask, - .irq_mask = mediatek_gpio_irq_mask, - .irq_unmask = mediatek_gpio_irq_unmask, - .irq_set_type = mediatek_gpio_irq_type, + .irq_mask_ack = mt7621_gpio_irq_mask, + .irq_mask = mt7621_gpio_irq_mask, + .irq_unmask = mt7621_gpio_irq_unmask, + .irq_set_type = mt7621_gpio_irq_type, .flags = IRQCHIP_IMMUTABLE, }; @@ -380,7 +380,7 @@ mt7621_gpio_to_irq(struct gpio_chip *gc, unsigned int offset) } static int -mediatek_gpio_bank_probe(struct device *dev, int bank) +mt7621_gpio_bank_probe(struct device *dev, int bank) { struct gpio_generic_chip_config config; struct mtk *mtk = dev_get_drvdata(dev); @@ -416,7 +416,7 @@ mediatek_gpio_bank_probe(struct device *dev, int bank) } rg->chip.gc.of_gpio_n_cells = 2; - rg->chip.gc.of_xlate = mediatek_gpio_xlate; + rg->chip.gc.of_xlate = mt7621_gpio_xlate; rg->chip.gc.ngpio = MTK_BANK_WIDTH; rg->chip.gc.label = devm_kasprintf(dev, GFP_KERNEL, "%s-bank%d", dev_name(dev), bank); @@ -443,7 +443,7 @@ mediatek_gpio_bank_probe(struct device *dev, int bank) } static int -mediatek_gpio_probe(struct platform_device *pdev) +mt7621_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct mtk *mtk; @@ -477,7 +477,7 @@ mediatek_gpio_probe(struct platform_device *pdev) return ret; for (i = 0; i < MTK_BANK_CNT; i++) { - ret = mediatek_gpio_bank_probe(dev, i); + ret = mt7621_gpio_bank_probe(dev, i); if (ret) return ret; } @@ -485,18 +485,18 @@ mediatek_gpio_probe(struct platform_device *pdev) return 0; } -static const struct of_device_id mediatek_gpio_match[] = { +static const struct of_device_id mt7621_gpio_match[] = { { .compatible = "mediatek,mt7621-gpio" }, {}, }; -MODULE_DEVICE_TABLE(of, mediatek_gpio_match); +MODULE_DEVICE_TABLE(of, mt7621_gpio_match); -static struct platform_driver mediatek_gpio_driver = { - .probe = mediatek_gpio_probe, +static struct platform_driver mt7621_gpio_driver = { + .probe = mt7621_gpio_probe, .driver = { .name = "mt7621_gpio", - .of_match_table = mediatek_gpio_match, + .of_match_table = mt7621_gpio_match, }, }; -builtin_platform_driver(mediatek_gpio_driver); +builtin_platform_driver(mt7621_gpio_driver); -- 2.43.0