Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2324555pxy; Tue, 3 Aug 2021 03:43:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4qzBH9e31iz8zQNFXzZ53+f7ukgyR9FHxWI6VtO8BRTU1+gDryY4Jt6CTWgvcDks3H4sS X-Received: by 2002:a05:6402:1a4c:: with SMTP id bf12mr25056317edb.137.1627987386204; Tue, 03 Aug 2021 03:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627987386; cv=none; d=google.com; s=arc-20160816; b=EyLwaH+AgY9L+9JriWlvs0WKLO857ToPKQSFvzcKTah6gNxJGdiZH0YowUIAuotR8x awslf4qrhqbcEORzUe6HjQFvFaoTt9WjgGBa5nBjYK8OLNllaNWqdsitFBZLk7y1OqoE GrPrUA6xRSK/x/s8R+ADS8THKw1e9L3QoGfGTciUu7KDCILMukFZXBYeDRnjK6rVm3kT 9HC6BhHG4go29AW0QzdECDNyH03t1k5hgRtWtMAZ6wlXBB0/qxVOzs8kK1lQDf2JQGMK TPrWU65L9nvCBmeUGkU1j22Hb8zDBaiCqUIrDcUss+yriJBIy5DvCSRhq1rz2JmcJhTx pF6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=gfGEOamNo0iibS6ir9+BOFBAniuaSm1Hn++mTq5BeK4=; b=YK3qcv+sSkZYFGz2AM3OuEqHb6YpB80hNhC3hpX0vOmN/4T3oPZF4IMiaUrN52Ox/8 HJ0QlOAixQ8KU7EHFL9FIhCNMMpeft3SGBk+VP4zMGmgHCEIO06HR2YysKYPTw/3SRYX Vg6wG1mvTLjObb2h3IXVDCpDHbLqTqvO+ZqSezuwZBBAwzZRgxnulAlzTZ0aE/9hcykC +4N5ThLMjCso6WNSP1KWoYrFGKfBesQXcoZE0PLTfXIbRqcJT6+ZHbSzkIJ9Y8OML1qA uuqFRgA3H32irwCmS1fgBFH6k89C6iSfwLnnbUDm7sqAx91JmTZGAyGTK3/xVyPvtEQg G9hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e19si7206574edz.248.2021.08.03.03.42.42; Tue, 03 Aug 2021 03:43:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235559AbhHCKlN (ORCPT + 99 others); Tue, 3 Aug 2021 06:41:13 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:46672 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S235547AbhHCKkv (ORCPT ); Tue, 3 Aug 2021 06:40:51 -0400 X-UUID: c59b3760f7474c2abe530f7b161e1b1c-20210803 X-UUID: c59b3760f7474c2abe530f7b161e1b1c-20210803 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1214592113; Tue, 03 Aug 2021 18:40:37 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 3 Aug 2021 18:40:36 +0800 Received: from localhost.localdomain (10.15.20.246) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 3 Aug 2021 18:40:35 +0800 From: Mason Zhang To: Mark Brown , Matthias Brugger CC: Laxman Dewangan , , , , , , Mason Zhang Subject: [PATCH v2 2/4] spi: modify set_cs_timing parameter Date: Tue, 3 Aug 2021 18:24:02 +0800 Message-ID: <20210803102401.30920-1-Mason.Zhang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No need pass in spi_delay to set_cs_timing callback. Signed-off-by: Mason Zhang --- include/linux/spi/spi.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 651e19ba3415..fe027efb85c2 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h @@ -553,8 +553,7 @@ struct spi_controller { * to configure specific CS timing through spi_set_cs_timing() after * spi_setup(). */ - int (*set_cs_timing)(struct spi_device *spi, struct spi_delay *setup, - struct spi_delay *hold, struct spi_delay *inactive); + int (*set_cs_timing)(struct spi_device *spi); /* bidirectional bulk transfers * -- 2.18.0