From patchwork Mon Oct 7 10:25:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 833712 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 8ED981BB68E for ; Mon, 7 Oct 2024 10:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728296757; cv=none; b=Hi54agxvU6xb2r8QNqJwmOpiql4c1brO3Te7vczTHLwuxsEbUSbfSUrsR1SaDzIoyjKkCc9wRO8gLE564izIc/485az8QNbGRK8vHAplaGBSSwfREABaPsIQL5oyHpczwT245xlnka38yn8oCDZQcPToaCmFIEt4PP3Y4fzfYVc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728296757; c=relaxed/simple; bh=AZ4aYTqXTb9q4p3DEsDM0IbTpvbwQAKE5iXBImqWgpk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NrLUWTkiiaJ4witvVQgY8wRl99WDr8IjvuGjyXlIeZBtaJOisqHO6EFBGsCjh21TP/wGUEwXsQ05NUFq5tVL8SMtZdzUOaZ/DiuUc5KHxO/V+ZBwypYTQ6pUN5n1Rv5DDji68Q5YIW9ht7xtzxQxNYgXp3kp+eGreECnPC7fpBU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=wYDUdQlO; arc=none smtp.client-ip=209.85.221.43 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 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="wYDUdQlO" Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-37cd0b5515fso2433179f8f.2 for ; Mon, 07 Oct 2024 03:25:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1728296753; x=1728901553; 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=m8uYf00EYYgczHi2fziShElLaaQfAMmUckBMhY+cS7o=; b=wYDUdQlOzBf+oyWGS9ksJRL+DcRhz8M4uG8QWQpBwJsx8PDzEWiY/3BF+voeFmOCod xw3UxMPM5Jr8JW4J9GiNE0N8VYdRYivmKK+OYV+iNz1Tjed27TMNBjYsP/Z9Grk4PVJZ aWAueuuZD/pMVvedUboBOg2+63s7w24YbowcrcWK6UO0zX77pg+0Z+S+vidjw824Xndv E27+Af0DX6J0pNqOv3759NZEHjLOsCtPrdXrQ1HTItMqUzfG4/N1cBrhQ2wOZVuo/jX5 qndn432/oDnJO6BgKK5ShwHFFqQ/QNGYGM38EYzJ4AAOlpU2ZRbfttoMykircc/aaHSu ubEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728296753; x=1728901553; 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=m8uYf00EYYgczHi2fziShElLaaQfAMmUckBMhY+cS7o=; b=crbY5l/G2HslaS4yc3H1vRV6FstHvK03cT9c1vr28ZuQqV1eytJh3J5fXicJNIoaaJ Q2J0y0rYtg/O8anivvvVLE2DPJeAP3wtzEBzABg+GLtbNAry8/wCZ/lxVRnbgQGigYij jB4oF4q9XBZbm5Kv/ukLN4D/ARDk9khf7mqBfoVsC/h9PwcawbIrNxAO++djBNpVbRrO 0bLIgRVF54uzntUF3aJFlwJnf1HONQDL0h1c9FhNGs8DyYHQNmlaimoXxvBBLD61mSXj wbmTLoFYYYQV8iDVjt3S8rkBvg7gR1exmXvlF5W4Vh+Id3xS38e/eDiqcXZSMRtQ4x/d iFgA== X-Gm-Message-State: AOJu0YwGXEFSKG/zIe/iXVhSVYJwdf0xALmW7z1NJvZZVmOjD4TVgQuQ a8m/8bSX8x8377a5orHT9DvSPE+4GnoSPABA4fy+AdLDnq5a8SYaFwpYyz4IurU= X-Google-Smtp-Source: AGHT+IGoWnkzT8525AyTFXUAMe09p4H7f1gY6gqLj2BHWQIwWIeqaenHWlKIXmGcXpVtGMX/wdXI9Q== X-Received: by 2002:a05:6000:1816:b0:37c:cd7e:6642 with SMTP id ffacd0b85a97d-37d0e736e43mr5873702f8f.13.1728296752831; Mon, 07 Oct 2024 03:25:52 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:6100:637:cbe9:f3bc]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37d1691a495sm5386900f8f.26.2024.10.07.03.25.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Oct 2024 03:25:52 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] gpio: vf610: use generic device_get_match_data() Date: Mon, 7 Oct 2024 12:25:49 +0200 Message-ID: <20241007102549.34926-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski There's no need to use the OF-specific variant to get the match data. Switch to using device_get_match_data() and with that remove the of.h include. Also remove of_irq.h as none of its interfaces is used here and order the includes in alphabetical order. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij --- drivers/gpio/gpio-vf610.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 27eff741fe9a..c4f34a347cb6 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -15,10 +15,9 @@ #include #include #include -#include -#include -#include #include +#include +#include #define VF610_GPIO_PER_PORT 32 @@ -297,7 +296,7 @@ static int vf610_gpio_probe(struct platform_device *pdev) if (!port) return -ENOMEM; - port->sdata = of_device_get_match_data(dev); + port->sdata = device_get_match_data(dev); dual_base = port->sdata->have_dual_base;