From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56B1A35CBB5 for ; Sun, 22 Feb 2026 23:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771803235; cv=none; b=saniBoIL5E8i7zPrMcAiV+ZY9EZUdZZr3EeudOXHkH0Oo9UVyAq2O05n/NXSfgvw+h1fI1cJcPK54lTTlcDXHrQ5N8lx/zH5otS7JdKSXyCh0MqkmEzTaCaWSv3uRrO1ELtgbkpfooMkaMeKV2i9ujS+7mo7ph4iMDpqv7TKXrQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771803235; c=relaxed/simple; bh=qfk9RIw8aLiDXFujZqSUCQQVgiAa42peN2LIBr3oqys=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=ru1Qlx2s61sXkeHTeI1NP0qgV2MkT85cdxUqGewHp0LMBBBQNYyZrU65pFdVqCUawbHNYfW8FE9Ff4+AjvNSGYnPBsgsGeHPpRrv6LRYfyqA/KBjYE3mZ8uMT6EeEduBa4+T+p4bnKOgulFu7xXUmMIV/PUbbI7M62YdNd3kckY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=KPq57KBF; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=BtTz5Wkx; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KPq57KBF"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="BtTz5Wkx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1771803233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=I/A3nXcpdMXTSfC1uHXMAWjY4Q4mmNnRIiBq7kOJ2Bk=; b=KPq57KBFuFMHwJj3DOl839Z275i0owdTbzVxety81W+AmRiEFRxOzPvrJfNcxj2dLHm9Kw wGIZFOJEImoygJu8hdAikIykmUqXGlx2w0LsurfD6cdBS1jNW0XtZBy95dDrKz3rsy994D ECeoFch4tyzJi73Ts7XOdlunF0SStcQ= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-278-SJ0l28XsPiKrOXRsxjhZHQ-1; Sun, 22 Feb 2026 18:33:52 -0500 X-MC-Unique: SJ0l28XsPiKrOXRsxjhZHQ-1 X-Mimecast-MFC-AGG-ID: SJ0l28XsPiKrOXRsxjhZHQ_1771803231 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-506b839cafaso56488681cf.3 for ; Sun, 22 Feb 2026 15:33:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1771803231; x=1772408031; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=I/A3nXcpdMXTSfC1uHXMAWjY4Q4mmNnRIiBq7kOJ2Bk=; b=BtTz5Wkxn16X4IDlLbnl2SLKM+xaZ12ukb1difNLZrumkZ0PAu/139B763up0v84HS BxmisSh7zXODxVmJ4as5kYFvxm/P5kkhb5jSj3Rup7LfabSjDaYhul6pjPfl53XC0hSG /guqYf2IXAfKFjDYH5abtrHPOt2zkrY3OrCXGLCurvlnvDGA3z+SulaQqQ0Drk8ebjFd E0Zj8QEnU43zRRa3V3eBiw1UPGC4j/p+fKxKmoK03aLMX2A6uBWzFWdIJnfC5uNxiD2A 1jH1z3BZq5K2ZIwWqaLlKbzAxWEMP9DjAmzYXucQOYsiatglFRwrKGmWKUjAOgHY18+U AceA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771803231; x=1772408031; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=I/A3nXcpdMXTSfC1uHXMAWjY4Q4mmNnRIiBq7kOJ2Bk=; b=K4ka6Ynf+eBwdxgi4CO0aD2ZvZFf2oPELMtrDBkYOpBhI6uARIi6tVYYqfEzmJh2GA rN99PWlNbOI8ado5f/HtQSl1TzA2lFxHDzXGb+YGJmYZ1qy5lXrqEdG0D1QxwFGpXo0v 0fBHlgf3DcEMl1nQRYQuAodZSrwiFa/pyp1bhuNf66qDVWGPI7dKuOd95aIZMv2l/X93 xpLeWAVzCtHK9gXIfkVhpJA+2/njzUF9YB1FF8Z96Cnn49Tts4GD+DwPG62tdRjx5qQB wqO0gwYSCiqiRezcDFjf7Rp8yT3uhyERbf9Aqy+3kFD10vMwiJNehQzy2+xNQRNsNuzz vE7w== X-Forwarded-Encrypted: i=1; AJvYcCVUhMUfx2wKdIqAh6DzuVv4uE4QjH0PKsjXCgeVcHaPupEOY2caoS0sDhpI4KwL0yx+ErvN8Z0k1Y2b14c=@vger.kernel.org X-Gm-Message-State: AOJu0Yz2+Ge0Wr+XBNioiWP/W2PGUDsuJUl016wBJ9bMcT4CaE4WOhwy 9+sXdwr/KLaOeYKa3tFzIq6DsyWG3d6KzOEM0uLGGuMVw9U+JV8EpXPu3yge8tEwwf3le9CoP/w 7NEhG7fnezbur7iaDEyD3IWU2AmgWRGtIAX/iNBIyn3uWb1pVCpDjbXfoohrpC+T4FECjPUHEkF OMHTHSb9zdLNtXtWOZDuRxAi2O9z90B/cxUDZElK24uNFIAWus X-Gm-Gg: AZuq6aJnXq+63TY5tk8GPP6ugol6gwquHjRafNii5PpihGQ8zHHNdqk9Q8AWCqVAXoh 0Sj5g66u1BtnEpuS3EMadPqnPnMhPy7nByFd4ZrGw4fsmRe6HNw0ZC8Oo8/+napHgxx427HIQ7p Jv8hn2JNkn59PTJH760hXXzI3+H/d+NIIICIraVaL4AWm8yXCB0TNeC6NawcATA8FNJaQ/76LjN ZQH88wc9tZ6m0EfOvI4mVu1N3J6adcjeq3qxszdatPG6c9TfOQL4ye8C+PIDDBdzsTEQLza+DDb vsPyiNmnYFQBn+3imDlbS4qSg5amF7Izpx/Ql3tI7cwC3soBGYG9LXvYIMSrhgAYAhNnZeuo8VU oFXc5o3j+6rbZdYeODkgKrwY5EHz7sFcvCQINcaBIZxZ3t5qYZt1n7ZHuKdgUqQ== X-Received: by 2002:a05:622a:11c6:b0:4ff:7efd:54f6 with SMTP id d75a77b69052e-5070bbcde65mr95189991cf.20.1771803231466; Sun, 22 Feb 2026 15:33:51 -0800 (PST) X-Received: by 2002:a05:622a:11c6:b0:4ff:7efd:54f6 with SMTP id d75a77b69052e-5070bbcde65mr95189721cf.20.1771803230949; Sun, 22 Feb 2026 15:33:50 -0800 (PST) Received: from [192.168.1.15] (c-73-183-52-120.hsd1.pa.comcast.net. [73.183.52.120]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-5070d6a2759sm53231931cf.17.2026.02.22.15.33.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Feb 2026 15:33:49 -0800 (PST) From: Brian Masney Date: Sun, 22 Feb 2026 18:33:29 -0500 Subject: [PATCH 1/3] pinctrl: pic32: change all cases of bare 'unsigned' to 'unsigned int' Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260222-pinctrl-pic32-v1-1-db86248da18d@redhat.com> References: <20260222-pinctrl-pic32-v1-0-db86248da18d@redhat.com> In-Reply-To: <20260222-pinctrl-pic32-v1-0-db86248da18d@redhat.com> To: Linus Walleij , Bartosz Golaszewski , Joshua Henderson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=6125; i=bmasney@redhat.com; s=20250903; h=from:subject:message-id; bh=qfk9RIw8aLiDXFujZqSUCQQVgiAa42peN2LIBr3oqys=; b=owGbwMvMwCW2/dJd9di6A+2Mp9WSGDJnTwpR99pyi9e3zPDMLoNwZrVPsibzs6cxqbj05X3YO 3W9Kc+6jlIWBjEuBlkxRZYluUYFEamrbO/d0WSBmcPKBDKEgYtTACYSt5jhn9KkeZP/3ZmwVrZJ /Zxs476qoGV/GWRtZrLtfe+2t1LK9xcjw7NsndbuKW7eK1cLCyzntYj6fo9vj+vyNPOC/LxpH95 vYgUA X-Developer-Key: i=bmasney@redhat.com; a=openpgp; fpr=A46D32705865AA3DDEDC2904B7D2DD275D7EC087 Address the following warning from checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Fixes: 2ba384e6c3810 ("pinctrl: pinctrl-pic32: Add PIC32 pin control driver") Signed-off-by: Brian Masney --- drivers/pinctrl/pinctrl-pic32.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/pinctrl/pinctrl-pic32.c b/drivers/pinctrl/pinctrl-pic32.c index 16bbbcf7206288df5f91870e6233970582f7ef80..e97727a799d5f8a7f2ea76886af5174c863d8ae6 100644 --- a/drivers/pinctrl/pinctrl-pic32.c +++ b/drivers/pinctrl/pinctrl-pic32.c @@ -1696,7 +1696,7 @@ static inline struct pic32_gpio_bank *irqd_to_bank(struct irq_data *d) } static inline struct pic32_gpio_bank *pctl_to_bank(struct pic32_pinctrl *pctl, - unsigned pin) + unsigned int pin) { return &pctl->gpio_banks[pin / PINS_PER_BANK]; } @@ -1709,7 +1709,7 @@ static int pic32_pinctrl_get_groups_count(struct pinctrl_dev *pctldev) } static const char *pic32_pinctrl_get_group_name(struct pinctrl_dev *pctldev, - unsigned group) + unsigned int group) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); @@ -1717,9 +1717,9 @@ static const char *pic32_pinctrl_get_group_name(struct pinctrl_dev *pctldev, } static int pic32_pinctrl_get_group_pins(struct pinctrl_dev *pctldev, - unsigned group, - const unsigned **pins, - unsigned *num_pins) + unsigned int group, + const unsigned int **pins, + unsigned int *num_pins) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); @@ -1745,7 +1745,7 @@ static int pic32_pinmux_get_functions_count(struct pinctrl_dev *pctldev) } static const char * -pic32_pinmux_get_function_name(struct pinctrl_dev *pctldev, unsigned func) +pic32_pinmux_get_function_name(struct pinctrl_dev *pctldev, unsigned int func) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); @@ -1753,9 +1753,9 @@ pic32_pinmux_get_function_name(struct pinctrl_dev *pctldev, unsigned func) } static int pic32_pinmux_get_function_groups(struct pinctrl_dev *pctldev, - unsigned func, + unsigned int func, const char * const **groups, - unsigned * const num_groups) + unsigned int * const num_groups) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); @@ -1766,7 +1766,7 @@ static int pic32_pinmux_get_function_groups(struct pinctrl_dev *pctldev, } static int pic32_pinmux_enable(struct pinctrl_dev *pctldev, - unsigned func, unsigned group) + unsigned int func, unsigned int group) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); const struct pic32_pin_group *pg = &pctl->groups[group]; @@ -1795,7 +1795,7 @@ static int pic32_pinmux_enable(struct pinctrl_dev *pctldev, static int pic32_gpio_request_enable(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, - unsigned offset) + unsigned int offset) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); struct pic32_gpio_bank *bank = gpiochip_get_data(range->gc); @@ -1810,7 +1810,7 @@ static int pic32_gpio_request_enable(struct pinctrl_dev *pctldev, } static int pic32_gpio_direction_input(struct gpio_chip *chip, - unsigned offset) + unsigned int offset) { struct pic32_gpio_bank *bank = gpiochip_get_data(chip); u32 mask = BIT(offset); @@ -1820,7 +1820,7 @@ static int pic32_gpio_direction_input(struct gpio_chip *chip, return 0; } -static int pic32_gpio_get(struct gpio_chip *chip, unsigned offset) +static int pic32_gpio_get(struct gpio_chip *chip, unsigned int offset) { struct pic32_gpio_bank *bank = gpiochip_get_data(chip); @@ -1842,7 +1842,7 @@ static int pic32_gpio_set(struct gpio_chip *chip, unsigned int offset, } static int pic32_gpio_direction_output(struct gpio_chip *chip, - unsigned offset, int value) + unsigned int offset, int value) { struct pic32_gpio_bank *bank = gpiochip_get_data(chip); u32 mask = BIT(offset); @@ -1855,7 +1855,7 @@ static int pic32_gpio_direction_output(struct gpio_chip *chip, static int pic32_gpio_set_direction(struct pinctrl_dev *pctldev, struct pinctrl_gpio_range *range, - unsigned offset, bool input) + unsigned int offset, bool input) { struct gpio_chip *chip = range->gc; @@ -1876,12 +1876,12 @@ static const struct pinmux_ops pic32_pinmux_ops = { .gpio_set_direction = pic32_gpio_set_direction, }; -static int pic32_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, +static int pic32_pinconf_get(struct pinctrl_dev *pctldev, unsigned int pin, unsigned long *config) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); struct pic32_gpio_bank *bank = pctl_to_bank(pctl, pin); - unsigned param = pinconf_to_config_param(*config); + unsigned int param = pinconf_to_config_param(*config); u32 mask = BIT(pin - bank->gpio_chip.base); u32 arg; @@ -1917,12 +1917,12 @@ static int pic32_pinconf_get(struct pinctrl_dev *pctldev, unsigned pin, return 0; } -static int pic32_pinconf_set(struct pinctrl_dev *pctldev, unsigned pin, - unsigned long *configs, unsigned num_configs) +static int pic32_pinconf_set(struct pinctrl_dev *pctldev, unsigned int pin, + unsigned long *configs, unsigned int num_configs) { struct pic32_pinctrl *pctl = pinctrl_dev_get_drvdata(pctldev); struct pic32_gpio_bank *bank = pctl_to_bank(pctl, pin); - unsigned param; + unsigned int param; u32 arg; unsigned int i; u32 offset = pin - bank->gpio_chip.base; @@ -1987,7 +1987,7 @@ static struct pinctrl_desc pic32_pinctrl_desc = { .owner = THIS_MODULE, }; -static int pic32_gpio_get_direction(struct gpio_chip *chip, unsigned offset) +static int pic32_gpio_get_direction(struct gpio_chip *chip, unsigned int offset) { struct pic32_gpio_bank *bank = gpiochip_get_data(chip); -- 2.53.0