/* Autosleep. When set to 1, autosleep is enabled, and the device enters wake-up mode automatically upon detection of inactivity.  */
static int adxl372_set_autosleep(const struct device *dev, bool enable)
/* Autosleep. When set to 1, autosleep is enabled, and the device enters wake-up mode automatically upon detection of inactivity.  */
static int adxl372_set_autosleep(const struct device *dev, bool enable)
{
	struct adxl372_data *data = dev->data;
	return data->hw_tf->write_reg_mask(dev, ADXL372_MEASURE,
					   ADXL372_MEASURE_AUTOSLEEP_MSK,
					   ADXL372_MEASURE_AUTOSLEEP_MODE(enable));
}