From: Martin Kelly <mkelly@xevo.com>
To: linux-iio@vger.kernel.org
Cc: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>,
Martin Kelly <mkelly@xevo.com>
Subject: [PATCH] iio: imu: inv_mpu6050: advertise max and min freqs
Date: Tue, 15 May 2018 14:53:49 -0700 [thread overview]
Message-ID: <20180515215349.27482-1-mkelly@xevo.com> (raw)
Currently, we allow a minimum FIFO rate of 4 and a max of 1000, but we
advertise down to only 10 and up to 1000. Expand the advertised range to
reflect the full available range.
Signed-off-by: Martin Kelly <mkelly@xevo.com>
---
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
index 43fba5f7532b..3f4862f09db3 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
@@ -799,7 +799,7 @@ static const struct iio_chan_spec inv_mpu_channels[] = {
};
/* constant IIO attribute */
-static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("10 20 50 100 200 500");
+static IIO_CONST_ATTR_SAMP_FREQ_AVAIL("4 10 20 50 100 200 500 1000");
static IIO_CONST_ATTR(in_anglvel_scale_available,
"0.000133090 0.000266181 0.000532362 0.001064724");
static IIO_CONST_ATTR(in_accel_scale_available,
--
2.11.0
next reply other threads:[~2018-05-15 21:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 21:53 Martin Kelly [this message]
2018-05-16 7:51 ` [PATCH] iio: imu: inv_mpu6050: advertise max and min freqs Jean-Baptiste Maneyrol
2018-05-16 16:07 ` Martin Kelly
2018-05-20 10:28 ` Jonathan Cameron
2018-05-21 18:42 ` Martin Kelly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180515215349.27482-1-mkelly@xevo.com \
--to=mkelly@xevo.com \
--cc=jmaneyrol@invensense.com \
--cc=linux-iio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.