[media] hackrf: do not set human readable name for formats
authorAntti Palosaari <crope@iki.fi>
Sat, 10 Oct 2015 16:51:07 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 20 Oct 2015 17:55:28 +0000 (15:55 -0200)
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>
drivers/media/usb/hackrf/hackrf.c

index 1fee4b9041fe59d33234ef80e6cd4b6e6fc4c986..e05bfec90f4608b0d8ebce199351dfe89db11994 100644 (file)
@@ -70,7 +70,6 @@ static const struct v4l2_frequency_band bands_rx_tx[] = {
 
 /* stream formats */
 struct hackrf_format {
-       char    *name;
        u32     pixelformat;
        u32     buffersize;
 };
@@ -78,7 +77,6 @@ struct hackrf_format {
 /* format descriptions for capture and preview */
 static struct hackrf_format formats[] = {
        {
-               .name           = "Complex S8",
                .pixelformat    = V4L2_SDR_FMT_CS8,
                .buffersize     = BULK_BUFFER_SIZE,
        },
@@ -1007,7 +1005,6 @@ static int hackrf_enum_fmt_sdr(struct file *file, void *priv,
        if (f->index >= NUM_FORMATS)
                return -EINVAL;
 
-       strlcpy(f->description, formats[f->index].name, sizeof(f->description));
        f->pixelformat = formats[f->index].pixelformat;
 
        return 0;