/* Simple custom function to set as value input function for emulated ADC channel. It returns arithmetic sequence with SEQUENCE_STEP as common difference, starting from param value.  */
static int handle_seq(const struct device *dev, unsigned int channel, void *data, uint32_t *result)
/* Simple custom function to set as value input function for emulated ADC channel. It returns arithmetic sequence with SEQUENCE_STEP as common difference, starting from param value.  */
static int handle_seq(const struct device *dev, unsigned int channel, void *data, uint32_t *result)
{
	struct handle_seq_params *param = data;
	if (param->value == 0) {
		return -EINVAL;
	}
	*result = param->value;
	param->value += SEQUENCE_STEP;
	return 0;
}