Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932759AbdC2OLu (ORCPT ); Wed, 29 Mar 2017 10:11:50 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36121 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752064AbdC2OLg (ORCPT ); Wed, 29 Mar 2017 10:11:36 -0400 Date: Wed, 29 Mar 2017 19:41:31 +0530 From: simran singhal To: jic23@kernel.org Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com Subject: [PATCH] iio: accel: bma180: Set up buffer timestamps for non-zero values Message-ID: <20170329141131.GA23646@singhal-Inspiron-5558> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 765 Lines: 23 Use the iio_pollfunc_store_time parameter during triggered buffer set-up to get valid timestamps. Signed-off-by: simran singhal --- drivers/iio/accel/bma180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/accel/bma180.c b/drivers/iio/accel/bma180.c index efc6773..4ae5c80 100644 --- a/drivers/iio/accel/bma180.c +++ b/drivers/iio/accel/bma180.c @@ -762,7 +762,7 @@ static int bma180_probe(struct i2c_client *client, goto err_trigger_free; } - ret = iio_triggered_buffer_setup(indio_dev, NULL, + ret = iio_triggered_buffer_setup(indio_dev, iio_pollfunc_store_time, bma180_trigger_handler, NULL); if (ret < 0) { dev_err(&client->dev, "unable to setup iio triggered buffer\n"); -- 2.7.4