From patchwork Wed Jan 24 16:17:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 765831 Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46]) (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 5E5717E562 for ; Wed, 24 Jan 2024 16:17:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706113053; cv=none; b=Tp9kHc7N/D5ZRX5zsacBVOn+fhOSFw8wvJUQiZMgSPKxcC3P3zwFhoJi+ktON+ugyBNOh5CW193OxjvJGw5Mbtnlj2WMAdFX+oZiE1Xu0Yix3Y3s2nGTta/Y0Fxoru/46hV7NxzJuUUn2kvp38s5Tx/0aYeH+Ye4SELfZV6mtKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706113053; c=relaxed/simple; bh=VAsb6eqfeLYmu0jkFcyOCz0ft3WU1lhaOoQGrRSaFgo=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZIEG0ELwErmYaAoIVn5LRT72gKjQpAlqGykiS3FTJyJ7mbJ8z52XXteKfzGdW0sDtVtYSrwxHau+EhU4KUn8SVg1D91J8Z6XLSSQYgM9JkE+sbZNuTEa36Zh83CpVF8GN07nNyKUm4hFCjhBtbM/fDf6h9HgKLd+9xk+RdUcLMU= 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=AwEsD74k; arc=none smtp.client-ip=209.85.221.46 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="AwEsD74k" Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-3392b045e0aso3795348f8f.2 for ; Wed, 24 Jan 2024 08:17:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1706113048; x=1706717848; 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=jO5aQGUKaS/fQM2T1bnOFpERKUWDVkmi7oXuFEYw4zk=; b=AwEsD74kl7eG/nzhJfyNqM3SEWFfdh2UxWGFoL/pk8bvOs6f8OCnMoNAzgRfm1dEh7 NHwlGzyiSGOCD8Sqe5XVHDAKoMT0ffB62Xprmd5NuAlf2DQt96gIvR+UhMkDffKgth7U yLgBmU4ZsjVxc200Z2HowsMrd1XkLFSm1B7jRJbweRl9dlcSezeAl0o64MiYrPCBzYYj uiCPR7NSXZDAxdXY0jUHbCqw1Yr0aOv3oguHmukZZaSGGmBcPiRLKpit7WdIp5Alzo3x 3EjITa53LVfB4Bb6hEDtCvwa3zvXZHQA2XlnoSt5xkxvEAuDUDydvvE4Cbklpqoqa+0r 9yxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706113048; x=1706717848; 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=jO5aQGUKaS/fQM2T1bnOFpERKUWDVkmi7oXuFEYw4zk=; b=NapHXMEBMy9ySBuMuEQahwRTiKxYwoGPPnVMPF3dql7g5bIWi93KTqu+01Z8ui2fHj 0+8Kdaox++LfGaZRQd9uhVNElCcpp7aEoccPgTI8cLDvLS6T03iZzf8SbugnXDQKLRXj JabI7NFKsBZcC13KkLBVgA+ESpqxxR55KqHsjuoDMS/fIC9iGszoble2IC8OiDZZxL2H UgR8np7jNjdgvPECTczsZ2a/QK7wI8csPw0iPN0p/llvBXfL/Oj5Pq66vRX5IxRZlEAs 9KM23fnfRgwZqEN5Y33zacaXugNtDZg0sjWDXDl1+XvJJ6xTEN/h562Vd1MKCXF0Wnwg huSg== X-Gm-Message-State: AOJu0Yz7bs5nitNLR0mDL3BDb6+xb7YFQhN085FonPfhqZSN2/mCGxE2 HBEe7yYbOIBf6o9pMiZVTcaJL4EiX2UA/RC84JMvdE0RI/p3+GsUAdWZ5B3zSyY= X-Google-Smtp-Source: AGHT+IGGN2cmVGtzO+EblLJMs22ucaqzXyOuBysf4VltLySs2AOpjH5IouqQDI6L7STaLhSzNaUe1A== X-Received: by 2002:a05:6000:104c:b0:337:d649:da70 with SMTP id c12-20020a056000104c00b00337d649da70mr679971wrx.138.1706113048439; Wed, 24 Jan 2024 08:17:28 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:e737:cf8b:25f7:e0ad]) by smtp.gmail.com with ESMTPSA id m17-20020a056000009100b0033928aadde1sm2764761wrx.48.2024.01.24.08.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 08:17:27 -0800 (PST) From: Bartosz Golaszewski To: Linus Walleij , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] gpio: cdev: remove leftover function pointer typedefs Date: Wed, 24 Jan 2024 17:17:25 +0100 Message-Id: <20240124161725.79582-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Bartosz Golaszewski The locking wrappers were replaces with lock guards. These typedefs are no longer needed. Signed-off-by: Bartosz Golaszewski Reviewed-by: Linus Walleij --- drivers/gpio/gpiolib-cdev.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpio/gpiolib-cdev.c b/drivers/gpio/gpiolib-cdev.c index 2a88736629ef..34d6712fa07c 100644 --- a/drivers/gpio/gpiolib-cdev.c +++ b/drivers/gpio/gpiolib-cdev.c @@ -61,11 +61,6 @@ static_assert(IS_ALIGNED(sizeof(struct gpio_v2_line_values), 8)); * interface to gpiolib GPIOs via ioctl()s. */ -typedef __poll_t (*poll_fn)(struct file *, struct poll_table_struct *); -typedef long (*ioctl_fn)(struct file *, unsigned int, unsigned long); -typedef ssize_t (*read_fn)(struct file *, char __user *, - size_t count, loff_t *); - /* * GPIO line handle management */