From patchwork Thu Feb 8 20:21:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13550438 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 0F411383BA for ; Thu, 8 Feb 2024 20:21:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423721; cv=none; b=Kei01rYEbgLkd0WskdrONue8+RbbLs85nO4jtqlGKKlTyPtlRCQH/RpnOaYZuYY8GDY3EBDLdxMBWsHMTQIFB3zI2tTSFqzWLPHpsk//vbom79EIKFXrtreeUGOqwEyBpsGcxIF6y08LCKZsvH+5fsEO6GYdMh6fusLPbe4EuYg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423721; c=relaxed/simple; bh=v5ksPX416jwrJG8mY5GmdGPuDUaCNPfM6x8sAX5n/LE=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=YtodQvsW1lvt+pFnxKVxvEIElC9cjeyhy+0nphLW77foBLC83uhAlrl+3oRy7OFVpACJyUOuuetcQGJbfr0mXyAvGEUr7y2qsRe8ZS4aZEeZGYrPZbsofritFoau2Bjx7A4K8S5qWK4UQJC8hnCHKRAYJ7D6KulHCWxze/2Shok= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=syzCU7pA; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="syzCU7pA" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-41061f068cdso290125e9.0 for ; Thu, 08 Feb 2024 12:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423718; x=1708028518; 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=lE5JHtuoDHy+7aqvLjhPRWMnVsRSmskZVIVhUopIObI=; b=syzCU7pAjTRkZkZcR+xuv9fLP1V+ym2cjipDeoF63wAAzuyg3is7s/vZ1++Mmm6nJ+ U6hZwx6yXNIfEJxtLsqEwgX3ttbR8sBq4vO5jCOnk066A283Kl0nkZ1m+uYL/orfM3tW aQ+w5XHUFpfuau4Ld44cp8NB2Ft6r9Y1ljUyCyYhy+acwklfBkZMmP5I8V1Z3Nt+hwY6 woDc7VRi7Na3jI188xLqpLKV1Q/QIsw14DccBx3KRwz1CLRH2ejBYsFam8j1tGtqwAf5 cMu4zpVJqJGelzEBFYhfDcS21R7A3gsDVCocqkCNA/2ttMKrMaWrU/GQtpLsK7pUx0Tn UZ+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423718; x=1708028518; 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=lE5JHtuoDHy+7aqvLjhPRWMnVsRSmskZVIVhUopIObI=; b=IyG0f9L26CJXO79Drn7cVGrq/HVTxP+/XzgSgCY+ZTtC1I/ekWmLXEVhR1gBbQP3iU YnA8PiDPHO0UkqDEKvUMqgw3E/3qxS5bCuTjxJ5XerH2vqtNwBFZ+HcIwMEiRkHqI039 dkVfAqBdxH9lmWCgCRXJiteJ70Fjv5d94m22xzBQD/7ktDbk6tFqCG70oubR0xfk3EtF aJgG/94xI8th1FiYNEIicdWHfyg1rhEudZLaSlmNgCy5ImtHEqCTZKUIUjznqWa+e760 OfXapQZ5OG+DhyD2WOF9y/ufm48keUM/ofjOyJAtATFCopHW4pRHiyE1OntH68O9jUgw dFbA== X-Forwarded-Encrypted: i=1; AJvYcCXTAY7hxVOTrromiR077balyxkc1mPDxQf1dXpOTKjkCk3nEkopOOh6gJ3WW8aWnRLOYMkWbxgaYOYdUdCZP2Q64ylOgu1iEahV X-Gm-Message-State: AOJu0YwUiSPXPbj/yo9HqJ47APFWJLErOJM3zlmkrkiDl9Ho26tG7mWj 7teL7eGXlEQgEh8QjCSrylvWR6PzQF1Jq/z5OU3EoltLLa10/1fIZh887/d5mUY= X-Google-Smtp-Source: AGHT+IEaFwr7Ir7SFzCiJ6urpwKh+LdpNeuyufC6D8xxMzWgeML4up0YeKPgsQ7Yc2BMv9/r/rDuGA== X-Received: by 2002:a05:600c:1ca9:b0:40f:d738:c213 with SMTP id k41-20020a05600c1ca900b0040fd738c213mr312002wms.29.1707423718366; Thu, 08 Feb 2024 12:21:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXiHg0p24NmyO7pEv4MGwMY/f2h/TMeuPNCg4obAkWV6IvhjnDaxeEulhC9wcvYIqN9rPeK2GOMGA4QBEwX961UGoi9wfdFbUzPFhOweQ1lqT+1CgTJz7H0Civw+u2j2Cyhr1Hl4lEk Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.21.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:21:57 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Date: Thu, 8 Feb 2024 21:21:52 +0100 Message-Id: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use existing typedef for dma_filter_fn to avoid duplicating type definition. Signed-off-by: Krzysztof Kozlowski --- include/linux/amba/pl022.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h index 9bf58aac0df2..e08488df6d28 100644 --- a/include/linux/amba/pl022.h +++ b/include/linux/amba/pl022.h @@ -16,6 +16,7 @@ #ifndef _SSP_PL022_H #define _SSP_PL022_H +#include #include /** @@ -235,7 +236,7 @@ struct dma_chan; struct pl022_ssp_controller { u16 bus_id; u8 enable_dma:1; - bool (*dma_filter)(struct dma_chan *chan, void *filter_param); + dma_filter_fn dma_filter; void *dma_rx_param; void *dma_tx_param; int autosuspend_delay; From patchwork Thu Feb 8 20:21:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13550439 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 0F50E383BA for ; Thu, 8 Feb 2024 20:22:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423723; cv=none; b=Py8XF0krth2IUqR/GBDDPoLFwz88cccysmNUAnnyvaaD9+yLqEtb2G7H2LAMNTPOh0pIFgfzTn/RmVRtzokrBjiJ4MyKsysD9d56fYe1QOX2LMt3Ev2UozZGUMwOdD/3jOMf4BM7Jn3/WwpDkDlcmJ8fs5eRtGqHhnkjpfHHDdI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423723; c=relaxed/simple; bh=ckCRYnNvMIn289Uaeitkz9MPGu6deST5KDhd+ydIsBc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dPI4f0bRzQm64G+Cycco1AqQbRPvn/IM4RsS+qYHFVwcHMmwYG//dY5OoSq7f+tKHPa7ObnEH1u0k8HdEDNo5u59+bL1DOzrgLm3KNuIdUEcBEIJ4g5UpNhnsa5JqIsuXnr5Jn5HAMQvzTxJZn4gepx/cT28ZaIeJQPLipW/Ug8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ePtWzHD8; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ePtWzHD8" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5114c05806eso283039e87.1 for ; Thu, 08 Feb 2024 12:22:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423720; x=1708028520; 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=IrqUcGgHJSe93EQJvf4/pcFq39Owmftzt0EiiVtqek8=; b=ePtWzHD88q6d0I8+FuI2v8Mbx669LldV8uHpWWyzxezcBTA3V1/5sxFhxnci96fNAn 9gqAb6tx9YmeLq4g2q+KHviE4BHBp9ne/1SPK1D+eNrrEcvmTikc1rnLHFHPclbnb+ts 81AeP0Nf5jttCR6NSLnCQh5OPDbxWs8j2whqmDU6zwza3FT0szMg6IcVdDoNWWVVj+Oo YGmT7YwUszeZst80Y3aJjCMM3BIUtxHIVogEcKIMlR2BUkxXfRTzi+CDvASCUEieomZu SMC12pCfWxhGeIoFlvw5ukiSXNlNyD8pp1wxZ+DQUP973j9rJGPURrrp3I70gDPFIPZv IgpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423720; x=1708028520; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IrqUcGgHJSe93EQJvf4/pcFq39Owmftzt0EiiVtqek8=; b=NmR/isHVXluGhQE1yy+oxH85yoHzTbc1RgTTIXn+1NGfunXgC0dcgySh6moBMpVBbQ 8BIzFBFN97PpYxN7EkZvB0xy/GqtqM0/OpV2WNc8ye3+GWVKZPCsvaWhHvHPr2CiqF1r yKfd2eWnt8SepsGKExTz/FWVGzhSZ5DUFwyxI13hfibXIOunrKRmYp0oXsh16TLIIXV5 Cqfsx5q3uwankUrB1gdmzWnzXPtRQoffKGaIhC8DhjNSybMHdUj7gRp7w4ybr6ha8Bww sUrHexDNtymND+/Yx8lU1VyV+TUuXMZQZamzKUzvnmfkW6xyfA7Q9nFidIGhKM3Idkgh 16eA== X-Gm-Message-State: AOJu0YySaRH2kAOh5HtSL1S8qW3/uBK9sGsbnm4H9cfcEZWpfDwao+oc ZtQwWXNMkf8kc861mAgpoXsO0kJLeZ4G/HJdWtpzSGe7q7T+3sUlC1kYF/3nOAM= X-Google-Smtp-Source: AGHT+IEvCz6u9bCOJFi0/kNc2Z2lsFQ6dktXoQwmQa4/urrhseDbei7D1UHqz/z7bxlVs2jpnOOnpg== X-Received: by 2002:ac2:42d4:0:b0:511:47e1:aa58 with SMTP id n20-20020ac242d4000000b0051147e1aa58mr234021lfl.28.1707423719947; Thu, 08 Feb 2024 12:21:59 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXOc6ARr5frpGIr3+feVvJ0AbglTxE+IZna5ZIFZhPd1EMs7AXBkGVa476dqS1WJ7AAZFJnFcWlK15kyxO2F/FrX2PUk1ugaf6G9P3f3Yrp+9DIpLwjxuWb8PZWn5+CxUCwxuS5xdJo Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.21.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:21:59 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Date: Thu, 8 Feb 2024 21:21:53 +0100 Message-Id: <20240208202154.630336-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> References: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add kerneldoc for dma_filter field in struct pl022_ssp_controller. Signed-off-by: Krzysztof Kozlowski --- include/linux/amba/pl022.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h index e08488df6d28..d7b07d0311e1 100644 --- a/include/linux/amba/pl022.h +++ b/include/linux/amba/pl022.h @@ -225,6 +225,7 @@ struct dma_chan; * struct pl022_ssp_master - device.platform_data for SPI controller devices. * @bus_id: identifier for this bus * @enable_dma: if true enables DMA driven transfers. + * @dma_filter: callback filter for dma_request_channel. * @dma_rx_param: parameter to locate an RX DMA channel. * @dma_tx_param: parameter to locate a TX DMA channel. * @autosuspend_delay: delay in ms following transfer completion before the From patchwork Thu Feb 8 20:21:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13550440 Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.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 150363BB48 for ; Thu, 8 Feb 2024 20:22:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423724; cv=none; b=N5GFsE2OUp9AC4zT8kWLOUdYcKqFjH7SizsFG52ceiER2uxYk1Zj4eCtulhd4m3NGMukMchglFvyqNF9ketNPzUwHVQATEyW8EiKelc7uaa/2G4aG6JVH2meTK05QaCEfEhPQUhXPPxyao+3MXGq89DhvKXY2bMLSKhtM1Ez2GE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423724; c=relaxed/simple; bh=EuC6sp3zgUZwELtrdAh8RcNfJzcbA+xXFU1f1/D83Z4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iBnxwwPcC4mYsiDy9WLrqK2PhnhAzskc4A7jzGsUC8Y3XXUWst21y7eD06TOKlI5rN0KNlUrI7u8awVWpIXBPdg59hTEL3eYN20OWhfScpCv8ngjGJT2cTz45sOp4VHABS9XJfPmVQVYGmO3jIk85l13ULQ7CiV4MAkD7yQ+jFM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=MrI34b5e; arc=none smtp.client-ip=209.85.167.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="MrI34b5e" Received: by mail-lf1-f46.google.com with SMTP id 2adb3069b0e04-51147d0abd1so228826e87.1 for ; Thu, 08 Feb 2024 12:22:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423721; x=1708028521; 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=EUkNFYshyeua4flK0SyOI4wZ1pzqdwJE/n1h1Pd676U=; b=MrI34b5eo+C9IsfjMQyu6JvgEl/GZd5BOYEQf2SXBW8cokU09FiWumqP9g9YPpzhzi V7e2M0MvpooLZurv4WmfGxEaX7XBugm2anQet8xBiGynrA5O4G36sICRTeIg+AOKkY9c zm4LBq7m2zRL/PGhgQxhbzSW+ISKbNvw163bSxKbSHCz5ORh0ijwK89PQFNtSjnX2+/u bksCxGr2+7/QlbS2fxClsxfbIklGiDuR84FFqjgpfz2ajE3fqC3zHFQJRt5N9dgf/Xal eJe/DAD4fHFlDsbWwz18uMoNBBhbCfbOflP6yok2fds/tWkm17A1d9Yil/IdAA+WnXK9 BY2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423721; x=1708028521; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EUkNFYshyeua4flK0SyOI4wZ1pzqdwJE/n1h1Pd676U=; b=WRSRNKPrMI4qDxpH6wI9G0jsTA7vp5Ldbnpm7zQxLVERmWbOjcalh50aZ9vAmIn9iA qKyII7HT5x/L5q+JOYghMbimhFrRcPKmdnBmsfCyAXEAqB6CK+zH/cIBY6Cgz6snKxuv iXgOgFW/MdGV45vVqesVQEgk7YucVqZEWmCDNCQUPn/0vTBEPP8okILtAsqOfdxtdFyi jieAA1EyehqaufLIbOvhkrAQyjPGOtqf9d45OWtjmvvWHgxIH45TpeAcsL/2MTJfW5hP ITP85HNLtXZIA9ytqvnOOB8GMyhnL1RNRm1Tjf4yNdFbTQavjxPwzWKiCnRVLC0VIYd9 KliA== X-Forwarded-Encrypted: i=1; AJvYcCW6AzFYkFGX34bAIRfeUO5QTTrxE/QZiQuMNWJvlG54I3xW5+KDGOimLUaSi5agEp+568uRtMWg6Lqne2Wklu0nJC94T0MRRsv8 X-Gm-Message-State: AOJu0Yzw/WELcxRRPJFJBbyXmh/GaZ0VPgJ/Zm2U+Z8ZMY1N5RqJvbIv HfDwkpAhZc5Aql2F2wjXYwzMXHpyBGQExWv7you5mQ7lRn9RdlJI4sYLEDgjnKQ= X-Google-Smtp-Source: AGHT+IESze3UOcaMRoHdLMtWz55kE16wKlmEO7fUIhskAP1XvPi0xGliLVBZ0pS6wVwu8akJ/DWbug== X-Received: by 2002:a19:910c:0:b0:511:696d:87cb with SMTP id t12-20020a19910c000000b00511696d87cbmr229963lfd.26.1707423721289; Thu, 08 Feb 2024 12:22:01 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVqXV/uVGQiQy36ATGYttAxe9QlOz0BaJN0UtwLo3HN53h+Cdz9xLBP5PmppGm0OcEtQChd9Pikit0CF/bAKe4BsVukYVD4Nz+gCKgnpSGfPLiQHbDscdxihexpQZC04LJIJJ35gywW Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id o25-20020a05600c511900b0040fdd7cbc8dsm361481wms.47.2024.02.08.12.22.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:22:00 -0800 (PST) From: Krzysztof Kozlowski To: Mark Brown , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn Date: Thu, 8 Feb 2024 21:21:54 +0100 Message-Id: <20240208202154.630336-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> References: <20240208202154.630336-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Use existing typedef for dma_filter_fn to avoid duplicating type definition. Signed-off-by: Krzysztof Kozlowski --- include/linux/spi/pxa2xx_spi.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h index 0916cb9bcb0a..ca2cd4e30ead 100644 --- a/include/linux/spi/pxa2xx_spi.h +++ b/include/linux/spi/pxa2xx_spi.h @@ -5,6 +5,7 @@ #ifndef __LINUX_SPI_PXA2XX_SPI_H #define __LINUX_SPI_PXA2XX_SPI_H +#include #include #include @@ -22,7 +23,7 @@ struct pxa2xx_spi_controller { bool is_target; /* DMA engine specific config */ - bool (*dma_filter)(struct dma_chan *chan, void *param); + dma_filter_fn dma_filter; void *tx_param; void *rx_param;