/* Set the threshold for activity detection for all 3-axis  */
static int adxl372_set_activity_threshold_xyz(const struct device *dev, uint8_t axis_reg_h, const struct adxl372_activity_threshold *act)
/* Set the threshold for activity detection for all 3-axis  */
static int adxl372_set_activity_threshold_xyz(const struct device *dev, uint8_t axis_reg_h, const struct adxl372_activity_threshold *act)
{
	int i, ret;
	for (i = 0; i < 3; i++) {
		ret = adxl372_set_activity_threshold(dev, axis_reg_h, act);
		if (ret) {
			return ret;
		}
		axis_reg_h += 2U;
	}
	return 0;
}