diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 07:32:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-06-24 07:36:13 -0400 |
commit | 21ed20340a789f893d410bd961c206445a333040 (patch) | |
tree | bbaf072ad0b397affe70a68332a010c69faea521 | |
parent | d69bb093a79e77955e05616c5158291c9a306e95 (diff) |
exynos4-is: remove some unused vars
Gcc 6.1 warns about some unused vars and functions. Remove them:
drivers/media/platform/exynos4-is/mipi-csis.c:665:46: warning: 's5pcsis_sd_internal_ops' defined but not used [-Wunused-const-variable=]
static const struct v4l2_subdev_internal_ops s5pcsis_sd_internal_ops = {
^~~~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/exynos4-is/mipi-csis.c:652:12: warning: 's5pcsis_open' defined but not used [-Wunused-function]
static int s5pcsis_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh)
^~~~~~~~~~~~
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r-- | drivers/media/platform/exynos4-is/mipi-csis.c | 17 | ||||
-rw-r--r-- | drivers/media/radio/radio-aztech.c | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/drivers/media/platform/exynos4-is/mipi-csis.c b/drivers/media/platform/exynos4-is/mipi-csis.c index bf954424e7be..86e681daa89d 100644 --- a/drivers/media/platform/exynos4-is/mipi-csis.c +++ b/drivers/media/platform/exynos4-is/mipi-csis.c | |||
@@ -649,23 +649,6 @@ static int s5pcsis_log_status(struct v4l2_subdev *sd) | |||
649 | return 0; | 649 | return 0; |
650 | } | 650 | } |
651 | 651 | ||
652 | static int s5pcsis_open(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) | ||
653 | { | ||
654 | struct v4l2_mbus_framefmt *format = v4l2_subdev_get_try_format(sd, fh->pad, 0); | ||
655 | |||
656 | format->colorspace = V4L2_COLORSPACE_JPEG; | ||
657 | format->code = s5pcsis_formats[0].code; | ||
658 | format->width = S5PCSIS_DEF_PIX_WIDTH; | ||
659 | format->height = S5PCSIS_DEF_PIX_HEIGHT; | ||
660 | format->field = V4L2_FIELD_NONE; | ||
661 | |||
662 | return 0; | ||
663 | } | ||
664 | |||
665 | static const struct v4l2_subdev_internal_ops s5pcsis_sd_internal_ops = { | ||
666 | .open = s5pcsis_open, | ||
667 | }; | ||
668 | |||
669 | static struct v4l2_subdev_core_ops s5pcsis_core_ops = { | 652 | static struct v4l2_subdev_core_ops s5pcsis_core_ops = { |
670 | .s_power = s5pcsis_s_power, | 653 | .s_power = s5pcsis_s_power, |
671 | .log_status = s5pcsis_log_status, | 654 | .log_status = s5pcsis_log_status, |
diff --git a/drivers/media/radio/radio-aztech.c b/drivers/media/radio/radio-aztech.c index 705dd6f9162c..f445327f282d 100644 --- a/drivers/media/radio/radio-aztech.c +++ b/drivers/media/radio/radio-aztech.c | |||
@@ -43,7 +43,6 @@ MODULE_VERSION("1.0.0"); | |||
43 | static int io[AZTECH_MAX] = { [0] = CONFIG_RADIO_AZTECH_PORT, | 43 | static int io[AZTECH_MAX] = { [0] = CONFIG_RADIO_AZTECH_PORT, |
44 | [1 ... (AZTECH_MAX - 1)] = -1 }; | 44 | [1 ... (AZTECH_MAX - 1)] = -1 }; |
45 | static int radio_nr[AZTECH_MAX] = { [0 ... (AZTECH_MAX - 1)] = -1 }; | 45 | static int radio_nr[AZTECH_MAX] = { [0 ... (AZTECH_MAX - 1)] = -1 }; |
46 | static const int radio_wait_time = 1000; | ||
47 | 46 | ||
48 | module_param_array(io, int, NULL, 0444); | 47 | module_param_array(io, int, NULL, 0444); |
49 | MODULE_PARM_DESC(io, "I/O addresses of the Aztech card (0x350 or 0x358)"); | 48 | MODULE_PARM_DESC(io, "I/O addresses of the Aztech card (0x350 or 0x358)"); |