mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
media: airspy: replace deprecated V4L2_TUNER_ADC
V4L2_TUNER_ADC is the deprecated alias of V4L2_TUNER_SDR. Use V4L2_TUNER_SDR directly throughout the driver. no change of function. Signed-off-by: Syed Ali <syedalia1000@gmail.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
db75789350
commit
8a3e233a83
|
|
@ -50,7 +50,7 @@ enum {
|
|||
static const struct v4l2_frequency_band bands[] = {
|
||||
{
|
||||
.tuner = 0,
|
||||
.type = V4L2_TUNER_ADC,
|
||||
.type = V4L2_TUNER_SDR,
|
||||
.index = 0,
|
||||
.capability = V4L2_TUNER_CAP_1HZ | V4L2_TUNER_CAP_FREQ_BANDS,
|
||||
.rangelow = 20000000,
|
||||
|
|
@ -713,7 +713,7 @@ static int airspy_g_tuner(struct file *file, void *priv, struct v4l2_tuner *v)
|
|||
|
||||
if (v->index == 0) {
|
||||
strscpy(v->name, "AirSpy ADC", sizeof(v->name));
|
||||
v->type = V4L2_TUNER_ADC;
|
||||
v->type = V4L2_TUNER_SDR;
|
||||
v->capability = V4L2_TUNER_CAP_1HZ | V4L2_TUNER_CAP_FREQ_BANDS;
|
||||
v->rangelow = bands[0].rangelow;
|
||||
v->rangehigh = bands[0].rangehigh;
|
||||
|
|
@ -739,7 +739,7 @@ static int airspy_g_frequency(struct file *file, void *priv,
|
|||
int ret;
|
||||
|
||||
if (f->tuner == 0) {
|
||||
f->type = V4L2_TUNER_ADC;
|
||||
f->type = V4L2_TUNER_SDR;
|
||||
f->frequency = s->f_adc;
|
||||
dev_dbg(s->dev, "ADC frequency=%u Hz\n", s->f_adc);
|
||||
ret = 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user