/* Compute the number of samples needed for the given channels.  */
static int compute_num_samples(const enum sensor_channel *channels, size_t num_channels)
/* Compute the number of samples needed for the given channels.  */
static int compute_num_samples(const enum sensor_channel *channels, size_t num_channels)
{
	int num_samples = 0;
	for (size_t i = 0; i < num_channels; ++i) {
		num_samples += SENSOR_CHANNEL_3_AXIS(channels[i]) ? 3 : 1;
	}
	return num_samples;
}