Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1324224ybf; Sun, 1 Mar 2020 06:37:15 -0800 (PST) X-Google-Smtp-Source: APXvYqzX6+br/UsCFc2EabCOWNiNnTu9bJnVjcsIIGggHbcYx0Cl/LtoP2I6nUOmA6F2zCYCFqhB X-Received: by 2002:aca:dc04:: with SMTP id t4mr8489966oig.51.1583073435346; Sun, 01 Mar 2020 06:37:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583073435; cv=none; d=google.com; s=arc-20160816; b=gK9TzHSM6K6cbS0AwxXLW7VJpk5SYCcDd38BBgdL3xsXwc3ORkbnD83/BgNSkWgLzQ xZweMMQSbzkm/OPifgs+l3oo10gWukAS3y7qPD/8xFxH1wx2PtXThd4P2euvc4GQ5WVx Ctto3NhLdKiwnl0v/Ux13N+v1eyZ9icO17pamIyx9gDz+mb/IgGhnSlRdFnhCFp1O0f9 ZSdsSkbBwbssBMzHdkU4FaRGTAUWb9I9klnIAacj5b16ODUGWe5HjBYWPOey3CpsiEgi AQ+GsBR1FicoEGExphGEEW7IsKmiO7PCevBxDw0aX3Wo3y39OxA5GWCbmy5ScrWd9YAB 9krQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=zK/8jJiD2CN1Zc46n24M7w3f1+8rYrYX87WEnz31jOc=; b=MtQ1gxzUqAeRFIu+7XckEQa0yiV9CMGEBqg4G+E/ykeBz1o4+Ht8LUr5mz7WTZ9Nul INkfmJlL3341gcHkJIx4jb0TsgfRCGJlf1LxCqIkrZZ95Lcc3TnOQbSNarBX51cFVyQH TONidAWU8/52cSY/j7ENWIdHWBCgnPR/Eu3vL6Fnc3aAQm+Z5ckD8jzEL5FmPdVKeATK +CQjs4n1Zckv7u4utEuCyjjGhTnBEnolaz++cC2aJ7R0B9lJTZXHedlElxVPifu2EErD UvZFK+yF8hcEV5VIw1XyU1ZyMrkcOaj4n+i12tqa+9E7EKjGebu5iCLif4L93z+r3ry5 LBkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVOUvLT6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si1505685oii.21.2020.03.01.06.37.02; Sun, 01 Mar 2020 06:37:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LVOUvLT6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726366AbgCAOgx (ORCPT + 99 others); Sun, 1 Mar 2020 09:36:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:50776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgCAOgx (ORCPT ); Sun, 1 Mar 2020 09:36:53 -0500 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 69C9E20880; Sun, 1 Mar 2020 14:36:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583073412; bh=P3kRgNLrPIcuygByvuToDezRGMERH1T6XYDrQ+yfock=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LVOUvLT67BXI+TQk+SPc3GGtHBWHVer0K5P0LK/yp9wpryWOeruK6VYztkQq7hVRw n/45q7kr6dFCf6DRdMPiTCwJd6D0BDawk0QvzvRMzvLd6bcQGlV2jAwV6UMzOZRiD6 gbNNaK6Ygw4Yhr9KKoQ2VFXRGj5gw5GnkvpfjdG8= Date: Sun, 1 Mar 2020 14:36:47 +0000 From: Jonathan Cameron To: Sergiu Cuciurean Cc: , , , , Subject: Re: [PATCH] iio: adc: ad9292: Use new structure for SPI transfer delays Message-ID: <20200301143647.7e611d6b@archlinux> In-Reply-To: <20200227121814.14442-1-sergiu.cuciurean@analog.com> References: <20200227121814.14442-1-sergiu.cuciurean@analog.com> X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Feb 2020 14:18:14 +0200 Sergiu Cuciurean wrote: > In a recent change to the SPI subsystem [1], a new `delay` struct was added > to replace the `delay_usecs`. This change replaces the current > `delay_usecs` with `delay` for this driver. > > The `spi_transfer_delay_exec()` function [in the SPI framework] makes sure > that both `delay_usecs` & `delay` are used (in this order to preserve > backwards compatibility). > > [1] commit bebcfd272df6 ("spi: introduce `delay` field for > `spi_transfer` + spi_transfer_delay_exec()") > > Signed-off-by: Sergiu Cuciurean Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. Thanks, Jonathan > --- > drivers/iio/adc/ad7292.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/adc/ad7292.c b/drivers/iio/adc/ad7292.c > index a6798f7dfdb8..6595fd196288 100644 > --- a/drivers/iio/adc/ad7292.c > +++ b/drivers/iio/adc/ad7292.c > @@ -122,7 +122,10 @@ static int ad7292_single_conversion(struct ad7292_state *st, > { > .tx_buf = &st->d8, > .len = 4, > - .delay_usecs = 6, > + .delay = { > + .value = 6, > + .unit = SPI_DELAY_UNIT_USECS > + }, > }, { > .rx_buf = &st->d16, > .len = 2,