/* Autosleep. When set to 1, autosleep is enabled, and the device enters wake-up mode automatically upon detection of inactivity.  */
static int adxl367_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 adxl367_set_autosleep(const struct device *dev, bool enable)
{
	struct adxl367_data *data = dev->data;
	return data->hw_tf->write_reg_mask(dev, ADXL367_POWER_CTL,
					   ADXL367_POWER_CTL_AUTOSLEEP_MSK,
					   FIELD_PREP(ADXL367_POWER_CTL_AUTOSLEEP_MSK, enable));
}