Re: [PATCH v3 1/2] iio: accel: add support for FXLS8962AF/FXLS8964AF accelerometers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 28/04/2021 16.19, Jonathan Cameron wrote:
+static int fxls8962af_get_temp(struct fxls8962af_data *data, int *val)
+{
+	struct device *dev = regmap_get_device(data->regmap);
+	unsigned int value;
+	int ret;
+
+	ret = fxls8962af_drdy(data);
I'm a little confused.  You check data is ready before calling power on
which could result in you moving from standby to active state?


Reading it again, I would definitively move it around :)
When testing it looks like we currently are getting the last sample from active state.

/Sean



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux