Message ID | 20240208202137.630281-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp431998dyd; Thu, 8 Feb 2024 12:24:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IGWbFrbvk+BaHNsQLyLNRHVBjORpjugh4buqEpZWtKBlmWhI6VvqIH5oZB7RQ6sKdwUNIPc X-Received: by 2002:a17:902:e84c:b0:1d9:63d1:e619 with SMTP id t12-20020a170902e84c00b001d963d1e619mr419098plg.29.1707423861405; Thu, 08 Feb 2024 12:24:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707423861; cv=pass; d=google.com; s=arc-20160816; b=U0oKp7tsfJgPSY+I/Pt2Qf7CcaK2R4ZPskszLNonCv/Ofwg4gyDGyZFsDrdEGFfoEO 48XnyiKr2kSUrSWEzzErdF33VBzbJ5FJc7ObxEZOj9R2x49AVWW9HPFvYNNY0VEbW34q 8+yl4a5/zsI49SMk440uuZIpZs3q6b1sbn9ecFIaIiWtWXDtqEWb3DJmiNfwLc8fDBq6 HH+NmgKuDgsSPJrwnC4f+KcdLN5XIj1Mh8juDODJIb1BWy/fmkYM1CRB7qPxcbYboEcq HQYMyrUPhT1DGTvaLhgzWyswuYuJOogrlcsu8BU7nKa8ktd/djlulqUcg8ge7B25GJsa qPEQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=z3acf27u1UG3FXBRbQIS8gUvuFH8u3NdpIthkRuoAGs=; fh=pDlzdtwTk05Qa2EWfuu7rDkfGj/SC9FxZreKPOMRvlQ=; b=AeL6uLDE0FHcFtVOHMsNezJwsYXZrdmB+wfG1+8ea2H0jutqWDtUhJZ+mxgVrW6ytE E3NYyKTACeWf+WsgEA5jfIu/ErmyMaE9CQR8xo2qRR4gKi//NxvgQhNsMNFUQlFVV2AN DavXBzXgnJxCgEEL0qckIlDdSWK9m+5GLiD37XAE3tK/2o1ZJUnoJGvXufV/CKvcFdjY lUnC4EhZMpyupIr0bris4DtTHZ2Hk1QKOpXQDHSJagOOC7zBeiAihq8MANvzTf5ozMqQ CR9LXF7ECuIuCxAAyOzclnUFJ44Xor0fn6rgWSZJbHKxNAVHoP/wqIlz9WMYontU6l1u POIA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BVeZdwrr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCWRZ3WxedNy1s8aiTQtQlHcnUJvrXcHRWDJUjgK53RXQTUXhCKXn9rbUOW8NRS5JmbU0VsZdpu371aLTdYAfwxDFyIzeg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id ma7-20020a170903094700b001d735ba6a21si355550plb.32.2024.02.08.12.24.21 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:24:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BVeZdwrr; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58661-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 74E9B28E77E for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 20:22:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF51538DF7; Thu, 8 Feb 2024 20:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BVeZdwrr" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (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 90F0338DEF for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 20:21:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423704; cv=none; b=o/3tOLxZuCJRB6AnqzRVdFZzw7nNaKdrhALlPAZYUf2mQ5Kkcv2myb2BMHAqJfI6AKeSeTQ636XfT2QmK//782bnp0E22oxC9ptw4Dy0P6w18NiQxTxSR4o742HQI8IE14YowjvGIu3d25JbYuuF6YDG5IwGvv8AK1bcLnB+IXQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707423704; c=relaxed/simple; bh=tsee4NBKtAR96KWrN8Sd6UvcENo+6pEmAXhvCXNQMq0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ZQGm3gHQ/WM/hOGU9s5+P4EPdpgJXzsXxPi959riWidjkgfNdOunkeZ5HNBY/wiwQmMzvPF9e6B8P7eZzJknpvayXWcFuazNzvoOU01t2QSd+O4aGvZEFHCmHssJytYdytQ2EKPNDdt6m3sn3ELxBYTGXOI7Ezj7HCQ6Br44f7I= 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=BVeZdwrr; arc=none smtp.client-ip=209.85.221.45 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 Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33b5978de44so40486f8f.3 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 12:21:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707423701; x=1708028501; 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=z3acf27u1UG3FXBRbQIS8gUvuFH8u3NdpIthkRuoAGs=; b=BVeZdwrrCLaIVIFuK2LY9K5gYOpCsreks9oeZtLWj/NF4VNHELY4kYE9IXsjqUctJ/ 9g1k8bHjHo7wWDf1aAsZSfFaAL9cwvNrk3w5Tu/NJ9fVVfw4LnR2M4qzxk0e88Ao831Y niXLyt5q/O7/U4AW+hLVn+UF0xgHrzCNFCg3CytLOnB2U6GwjpzOx1dOG1MBk1drt+Ch 9deIiQKgrNaYNGnXP25Vf4S/4FLBJmzpNwwUXm7Lisf8qKvH0B/uVu0KcuWDWCJMdSeL U4okl5jGkY5wZ40pfD67ppnstvZ/BmNvSxHIKL3PHhQVWBZBU5aUb1HY+wP+w55xKa4p PRzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707423701; x=1708028501; 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=z3acf27u1UG3FXBRbQIS8gUvuFH8u3NdpIthkRuoAGs=; b=GvQFelv49B2+mJK+WY0GJQelXTB7pcZ2TL35777XXd+vBNipDhur4Ak/XQ8TxCNCh2 JCnNca417ukbjg083QFjTS0c1uWVU94AJGhSUogLqufrHRXsr7Fa4anrTP72wV54jsiX qOX+x0sv7ZXw0fJDu+kyHcc6PENgolRpk3P5TSdRYqyuQwOiq4skjmXY+P48yTZafMJW Csn/G0WWtamiZq1Uf7bu6273VIGeXXGrT9um6/N0+n5d8qKlQUeClBNlE9Cl/bUQ5Cda NjDifTNd/zecYISRSHMLJanwD5jy1cKqjQhfRcFmNr0GbhXUSzQqSLi830Ulq56aD2XG pmVw== X-Gm-Message-State: AOJu0Yzdzh7i0CMAVuKTGJ9i78cu3MgxQTJ8dtJRb62Fkbsu/6I9N19M fGnt6UHlGJ0IyArX46Reph8vSR6Oc92c06xhRZVoC7BxhcX/NNo2RKnhlqC/v9Q= X-Received: by 2002:adf:f891:0:b0:33b:28c0:7c98 with SMTP id u17-20020adff891000000b0033b28c07c98mr349299wrp.61.1707423700730; Thu, 08 Feb 2024 12:21:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVWntY+LUqqaL/5/EQFIUEI5qSZCAvHwoNIb4PBn6lcNZRcol6KYHwLo3eRIa2UjHTXrWcyeyGLdv21pn4gWcBuGFBjLGWBk9gxpgtXfKt6l6kspZ9qvKBkF02ORU4wjY3i3IAPLeWkejOyjgiXpJ0LEUrnZUkgRkQeTlyDU0uE4W24d9iPWuT+yBSx3vy7XyYDo7u1Yibwa3WNRd5kx8QijQw= Received: from krzk-bin.. ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id e5-20020a5d5305000000b0033af5086c2dsm102548wrv.58.2024.02.08.12.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 12:21:40 -0800 (PST) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Wolfram Sang <wsa+renesas@sang-engineering.com>, Ulf Hansson <ulf.hansson@linaro.org>, linux-mmc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH] mmc: renesas_sdhi: use typedef for dma_filter_fn Date: Thu, 8 Feb 2024 21:21:37 +0100 Message-Id: <20240208202137.630281-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790363682900237360 X-GMAIL-MSGID: 1790363682900237360 |
Series |
mmc: renesas_sdhi: use typedef for dma_filter_fn
|
|
Commit Message
Krzysztof Kozlowski
Feb. 8, 2024, 8:21 p.m. UTC
Use existing typedef for dma_filter_fn to avoid duplicating type
definition.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/mmc/host/renesas_sdhi.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Comments
On Thu, Feb 08, 2024 at 09:21:37PM +0100, Krzysztof Kozlowski wrote: > Use existing typedef for dma_filter_fn to avoid duplicating type > definition. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
On Thu, 8 Feb 2024 at 21:21, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> wrote: > > Use existing typedef for dma_filter_fn to avoid duplicating type > definition. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/renesas_sdhi.h | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mmc/host/renesas_sdhi.h b/drivers/mmc/host/renesas_sdhi.h > index c1fb9740eab0..586f94d4dbfd 100644 > --- a/drivers/mmc/host/renesas_sdhi.h > +++ b/drivers/mmc/host/renesas_sdhi.h > @@ -9,6 +9,7 @@ > #ifndef RENESAS_SDHI_H > #define RENESAS_SDHI_H > > +#include <linux/dmaengine.h> > #include <linux/platform_device.h> > #include "tmio_mmc.h" > > @@ -63,7 +64,7 @@ struct renesas_sdhi_of_data_with_quirks { > struct renesas_sdhi_dma { > unsigned long end_flags; > enum dma_slave_buswidth dma_buswidth; > - bool (*filter)(struct dma_chan *chan, void *arg); > + dma_filter_fn filter; > void (*enable)(struct tmio_mmc_host *host, bool enable); > struct completion dma_dataend; > struct tasklet_struct dma_complete; > -- > 2.34.1 >
diff --git a/drivers/mmc/host/renesas_sdhi.h b/drivers/mmc/host/renesas_sdhi.h index c1fb9740eab0..586f94d4dbfd 100644 --- a/drivers/mmc/host/renesas_sdhi.h +++ b/drivers/mmc/host/renesas_sdhi.h @@ -9,6 +9,7 @@ #ifndef RENESAS_SDHI_H #define RENESAS_SDHI_H +#include <linux/dmaengine.h> #include <linux/platform_device.h> #include "tmio_mmc.h" @@ -63,7 +64,7 @@ struct renesas_sdhi_of_data_with_quirks { struct renesas_sdhi_dma { unsigned long end_flags; enum dma_slave_buswidth dma_buswidth; - bool (*filter)(struct dma_chan *chan, void *arg); + dma_filter_fn filter; void (*enable)(struct tmio_mmc_host *host, bool enable); struct completion dma_dataend; struct tasklet_struct dma_complete;