diff options
author | Antti Palosaari <crope@iki.fi> | 2015-10-10 12:51:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-10-20 13:55:28 -0400 |
commit | 36c6326c5c22054605b0425a1896542a4222d7d6 (patch) | |
tree | 480fee9d36211b356a6b38466512be7574ef22ef | |
parent | 8bc4a9ed85046c214458c9e82aea75d2f46cfffd (diff) |
[media] hackrf: do not set human readable name for formats
Format names are set by core nowadays. Remove name from driver.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/usb/hackrf/hackrf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index 1fee4b9041fe..e05bfec90f46 100644 --- a/drivers/media/usb/hackrf/hackrf.c +++ b/drivers/media/usb/hackrf/hackrf.c | |||
@@ -70,7 +70,6 @@ static const struct v4l2_frequency_band bands_rx_tx[] = { | |||
70 | 70 | ||
71 | /* stream formats */ | 71 | /* stream formats */ |
72 | struct hackrf_format { | 72 | struct hackrf_format { |
73 | char *name; | ||
74 | u32 pixelformat; | 73 | u32 pixelformat; |
75 | u32 buffersize; | 74 | u32 buffersize; |
76 | }; | 75 | }; |
@@ -78,7 +77,6 @@ struct hackrf_format { | |||
78 | /* format descriptions for capture and preview */ | 77 | /* format descriptions for capture and preview */ |
79 | static struct hackrf_format formats[] = { | 78 | static struct hackrf_format formats[] = { |
80 | { | 79 | { |
81 | .name = "Complex S8", | ||
82 | .pixelformat = V4L2_SDR_FMT_CS8, | 80 | .pixelformat = V4L2_SDR_FMT_CS8, |
83 | .buffersize = BULK_BUFFER_SIZE, | 81 | .buffersize = BULK_BUFFER_SIZE, |
84 | }, | 82 | }, |
@@ -1007,7 +1005,6 @@ static int hackrf_enum_fmt_sdr(struct file *file, void *priv, | |||
1007 | if (f->index >= NUM_FORMATS) | 1005 | if (f->index >= NUM_FORMATS) |
1008 | return -EINVAL; | 1006 | return -EINVAL; |
1009 | 1007 | ||
1010 | strlcpy(f->description, formats[f->index].name, sizeof(f->description)); | ||
1011 | f->pixelformat = formats[f->index].pixelformat; | 1008 | f->pixelformat = formats[f->index].pixelformat; |
1012 | 1009 | ||
1013 | return 0; | 1010 | return 0; |