Lines Matching refs:mma7455
65 static int mma7455_drdy(struct mma7455_data *mma7455) in mma7455_drdy() argument
67 struct device *dev = regmap_get_device(mma7455->regmap); in mma7455_drdy()
73 ret = regmap_read(mma7455->regmap, MMA7455_REG_STATUS, ®); in mma7455_drdy()
92 struct mma7455_data *mma7455 = iio_priv(indio_dev); in mma7455_trigger_handler() local
95 ret = mma7455_drdy(mma7455); in mma7455_trigger_handler()
99 ret = regmap_bulk_read(mma7455->regmap, MMA7455_REG_XOUTL, in mma7455_trigger_handler()
100 mma7455->scan.channels, in mma7455_trigger_handler()
101 sizeof(mma7455->scan.channels)); in mma7455_trigger_handler()
105 iio_push_to_buffers_with_timestamp(indio_dev, &mma7455->scan, in mma7455_trigger_handler()
118 struct mma7455_data *mma7455 = iio_priv(indio_dev); in mma7455_read_raw() local
128 ret = mma7455_drdy(mma7455); in mma7455_read_raw()
132 ret = regmap_bulk_read(mma7455->regmap, chan->address, &data, in mma7455_read_raw()
149 ret = regmap_read(mma7455->regmap, MMA7455_REG_CTL1, ®); in mma7455_read_raw()
168 struct mma7455_data *mma7455 = iio_priv(indio_dev); in mma7455_write_raw() local
180 return regmap_update_bits(mma7455->regmap, MMA7455_REG_CTL1, in mma7455_write_raw()
246 struct mma7455_data *mma7455; in mma7455_core_probe() local
262 indio_dev = devm_iio_device_alloc(dev, sizeof(*mma7455)); in mma7455_core_probe()
267 mma7455 = iio_priv(indio_dev); in mma7455_core_probe()
268 mma7455->regmap = regmap; in mma7455_core_probe()
277 regmap_write(mma7455->regmap, MMA7455_REG_MCTL, in mma7455_core_probe()
301 struct mma7455_data *mma7455 = iio_priv(indio_dev); in mma7455_core_remove() local
306 regmap_write(mma7455->regmap, MMA7455_REG_MCTL, in mma7455_core_remove()