/* si470x_vidioc_s_frequency - set tuner or modulator radio frequency  */
static int si470x_vidioc_s_frequency(struct file *file, void *priv, struct v4l2_frequency *freq)
/* si470x_vidioc_s_frequency - set tuner or modulator radio frequency  */
static int si470x_vidioc_s_frequency(struct file *file, void *priv, struct v4l2_frequency *freq)
{
	struct si470x_device *radio = video_drvdata(file);
	int retval = 0;
	retval = si470x_disconnect_check(radio);
	if (retval)
		goto done;
	if (freq->tuner != 0) {
		retval = -EINVAL;
		goto done;
	}
	retval = si470x_set_freq(radio, freq->frequency);
done:
	if (retval < 0)
		dev_warn(&radio->videodev->dev,
			"set frequency failed with %d\n", retval);
	return retval;
}