From nobody Thu Nov 28 00:49:21 2024 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 8E8681BAEC0 for ; Mon, 7 Oct 2024 10:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728296757; cv=none; b=TWZakqMq9VEcNrPyfJbMTLx73eoXkGCKUF7fq6tlZyUnwxgk1vEEzfrL+d5Nxwj6Wla/sP0fWHZ/x6P8x78UYAMpJ79SH9mUDfod8NChEYmZbf1Pixc6d3ShQkh3DHHELm+1YF0GsAxxwLCuOg0E8oasbU3ioE+NbVu+vRaFjTc= 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.42 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-f42.google.com with SMTP id ffacd0b85a97d-37cc84c12c2so2234250f8f.3 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=nyswlfPO7e0LqbtoYo6ZMDXgY1P/wZcHTG191xiDAdJ34Km8gKA6jC2v/VZg3QMfM1 CrS/yCOXaBdwGmfZirSiQ0ouWE/tP1Qumn+nLxbKxSj6mfzsx5pcHSyp48X7rdQCj9wv oe5wG3hDa8gEoZb56xGoXyAuZtfE36Kjvex8YFYCJwnXVe4B2U7LiG3Jtdl05lMaFvP1 w/g4Bl6bxf/pMK4VgEwIeP+c8rXO3UmBNqRwLBdq0dAiJrbHPVtkZ1e2dLh5RPzEmK9I g6aYiyqHjqxUN3sffFGOZpgRY3VrgTJFYLSF/0mzOIrk0u0skDiDQ6jKFO+KqNnDRe1+ KwLw== X-Forwarded-Encrypted: i=1; AJvYcCXblKuVSFYBV8zFHQScgwvC/hVFOhvXqhe/w0pS+FxgwmsT2edJIeZPRrNJZHo4GcbugKEZm/6FhEkcquU=@vger.kernel.org X-Gm-Message-State: AOJu0YxETvePmB7F6rtsFSpslSWnJ/9APiGGYZ6snw3/r0oHYh+PB6XU qMAObfJMhIV/LyIswxrBkc8P0HpxmxQCOk+mk9aeG7oF3YOb14M7x7tZ1Vzi9Y/I4kSFoe9f+Kj s 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 =20 #define VF610_GPIO_PER_PORT 32 =20 @@ -297,7 +296,7 @@ static int vf610_gpio_probe(struct platform_device *pde= v) if (!port) return -ENOMEM; =20 - port->sdata =3D of_device_get_match_data(dev); + port->sdata =3D device_get_match_data(dev); =20 dual_base =3D port->sdata->have_dual_base; =20 --=20 2.43.0