Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1375678ybf; Sun, 1 Mar 2020 07:53:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyuhfuep0YTCkOyvAgB1QALg2wwOmQUSJF+WXeld1YdiGgtUwq9TT58z2eWzHLYadfzn1BA X-Received: by 2002:aca:4587:: with SMTP id s129mr8732171oia.124.1583078011291; Sun, 01 Mar 2020 07:53:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583078011; cv=none; d=google.com; s=arc-20160816; b=DVh0GQvg03lWWdlvfq9bCfXDMPNSrOPtILjAcndS8YpXFRYzMSXqdylEfYVsWBqwNa 5ehXZwiPW+ecpyRoU/VsndRluE4V6/IsPHmXHFQ54QjaW4vq4p4UWIDpE7YxxcLqtkDa gvjpOdwZZLT3EzvBrkYwISUi5K3sX5InfpJ8z5uA21WYD1fckB5r1C2wI5VXe1DGQfyQ x+J14FBi5/z+lgCM6aO6BcxVoF+Gq5J9G4GJMFs8vWXKPSZvl8U3YjKuXPoYcuob44iq 22S8Ze1kbt+Z2O7ax544cZobBUZKEb8uZ1cHHRSvDIXYnRprcMeJWX+JAaWS7hdJLk9D tCGQ== 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=SYX2D0yffw69MBxeW/KiqjO8YzKBexEHJRpvsfkidHA=; b=ylSXn1kqVyS1avICo8kgtGYKuO8qQEgcJWhbXv+15ZpRtb/TuNBlJikgAVmCGdfP36 J00niapPddXuydHa9mo9jlTeYNZGU1j0YjtmZgAQglxqckjK3dtLUsxoYoGEmNaLgkQ0 8CeHREEHJTc33RnRrJilasYuHGIYNskAHyScklGV3wB4/bOD95kQD1OQCwmnE6Oaj6Rw C9crrxJUHjI/clmgH1Vf0TFyhsqB0iUBPwzfAPy6yKrPdAn0J3VpTewAciF98zXFpaR5 mmjcl7k7tJ8wLSm4ZNlFksxTyRCpLs5AlhvcfocZBfTrsV/mYrAyb265/fWFG6aYuGMZ 9JkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=svmTW3XU; 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 u13si4957238otg.56.2020.03.01.07.53.20; Sun, 01 Mar 2020 07:53:31 -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=svmTW3XU; 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 S1726752AbgCAPxI (ORCPT + 99 others); Sun, 1 Mar 2020 10:53:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:35920 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725945AbgCAPxI (ORCPT ); Sun, 1 Mar 2020 10:53:08 -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 7989A24677; Sun, 1 Mar 2020 15:53:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583077987; bh=BNvU48AhqE7w6xnebVJSrHAuwWtfIWoXRKT9bbM+zBQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=svmTW3XUdfP8EzFJ/2J+PBd2QK8uMJ+ojASvGwB3my7C3COrMRRb5fNAuxIFDXzF7 GlVAaRbmL7V+MZKdnW09O/oc+XG9yEz79kax+Q3n7E5YIhXiHntz82eSDnCyFNgx25 kpsB5fJ3L9/rcHpYu+RwZZ8wt/IMMaRhc8YMrt6c= Date: Sun, 1 Mar 2020 15:53:00 +0000 From: Jonathan Cameron To: Sergiu Cuciurean Cc: , , , , , Subject: Re: [PATCH] iio: imu: adis_buffer: Use new structure for SPI transfer delays Message-ID: <20200301155300.455551fa@archlinux> In-Reply-To: <20200227123859.21757-1-sergiu.cuciurean@analog.com> References: <20200227123859.21757-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:38:59 +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. Thanks, Jonathan > --- > drivers/iio/imu/adis_buffer.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/iio/imu/adis_buffer.c b/drivers/iio/imu/adis_buffer.c > index 3f4dd5c00b03..04e5e2a0fd6b 100644 > --- a/drivers/iio/imu/adis_buffer.c > +++ b/drivers/iio/imu/adis_buffer.c > @@ -97,7 +97,8 @@ int adis_update_scan_mode(struct iio_dev *indio_dev, > if (j != scan_count) > adis->xfer[j].cs_change = 1; > adis->xfer[j].len = 2; > - adis->xfer[j].delay_usecs = adis->data->read_delay; > + adis->xfer[j].delay.value = adis->data->read_delay; > + adis->xfer[j].delay.unit = SPI_DELAY_UNIT_USECS; > if (j < scan_count) > adis->xfer[j].tx_buf = &tx[j]; > if (j >= 1)