1. 05 Dec, 2018 33 commits
  2. 03 Dec, 2018 7 commits
    • Randy Dunlap's avatar
      media: seco-cec: add missing header file to fix build · 9b90dc85
      Randy Dunlap authored
      Fix build errors due to missing <linux/module.h> header file.
      The header file is inserted first because module-related errors
      begin showing up in <linux/acpi.h> (when CONFIG_ACPI is not set).
      
      Sample of build errors:
      
      In file included from ../include/linux/acpi.h:27:0,
                       from ../drivers/media/platform/seco-cec/seco-cec.c:10:
      ../include/linux/device.h:1620:1: warning: data definition has no type or storage class [enabled by default]
       module_exit(__driver##_exit);
       ^
      ../include/linux/platform_device.h:229:2: note: in expansion of macro 'module_driver'
        module_driver(__platform_driver, platform_driver_register, \
        ^
      ../drivers/media/platform/seco-cec/seco-cec.c:791:1: note: in expansion of macro 'module_platform_driver'
       module_platform_driver(secocec_driver);
       ^
      ../include/linux/device.h:1620:1: error: type defaults to 'int' in declaration of 'module_exit' [-Werror=implicit-int]
       module_exit(__driver##_exit);
       ^
      ../include/linux/platform_device.h:229:2: note: in expansion of macro 'module_driver'
        module_driver(__platform_driver, platform_driver_register, \
        ^
      ../drivers/media/platform/seco-cec/seco-cec.c:791:1: note: in expansion of macro 'module_platform_driver'
       module_platform_driver(secocec_driver);
       ^
      In file included from ../include/linux/linkage.h:7:0,
                       from ../include/linux/kernel.h:7,
                       from ../include/linux/list.h:9,
                       from ../include/linux/resource_ext.h:17,
                       from ../include/linux/acpi.h:26,
                       from ../drivers/media/platform/seco-cec/seco-cec.c:10:
      ../include/linux/export.h:18:30: warning: parameter names (without types) in function declaration [enabled by default]
       #define THIS_MODULE ((struct module *)0)
                                    ^
      ../include/linux/platform_device.h:199:34: note: in expansion of macro 'THIS_MODULE'
        __platform_driver_register(drv, THIS_MODULE)
                                        ^
      ../include/linux/device.h:1613:9: note: in expansion of macro 'platform_driver_register'
        return __register(&(__driver) , ##__VA_ARGS__); \
               ^
      ../include/linux/platform_device.h:229:2: note: in expansion of macro 'module_driver'
        module_driver(__platform_driver, platform_driver_register, \
        ^
      ../drivers/media/platform/seco-cec/seco-cec.c:791:1: note: in expansion of macro 'module_platform_driver'
       module_platform_driver(secocec_driver);
       ^
      ../drivers/media/platform/seco-cec/seco-cec.c:793:20: error: expected declaration specifiers or '...' before string constant
       MODULE_DESCRIPTION("SECO CEC X86 Driver");
                          ^
      ../drivers/media/platform/seco-cec/seco-cec.c:794:15: error: expected declaration specifiers or '...' before string constant
       MODULE_AUTHOR("Ettore Chimenti <ek5.chimenti@gmail.com>");
                     ^
      ../drivers/media/platform/seco-cec/seco-cec.c:795:16: error: expected declaration specifiers or '...' before string constant
       MODULE_LICENSE("Dual BSD/GPL");
                      ^
      In file included from ../include/linux/acpi.h:27:0,
                       from ../drivers/media/platform/seco-cec/seco-cec.c:10:
      ../drivers/media/platform/seco-cec/seco-cec.c:791:24: warning: 'secocec_driver_init' defined but not used [-Wunused-function]
       module_platform_driver(secocec_driver);
                              ^
      ../include/linux/device.h:1611:19: note: in definition of macro 'module_driver'
       static int __init __driver##_init(void) \
                         ^
      ../drivers/media/platform/seco-cec/seco-cec.c:791:1: note: in expansion of macro 'module_platform_driver'
       module_platform_driver(secocec_driver);
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Cc: Ettore Chimenti <ek5.chimenti@gmail.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      9b90dc85
    • Hans Verkuil's avatar
      media: vicodec: move the GREY format to the end of the list · 98b5368f
      Hans Verkuil authored
      With the GREY format at the beginning, the default format selected
      by vicodec would be GREY instead of YUV420. That didn't make sense,
      so move it to the end of the list.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      98b5368f
    • Colin Ian King's avatar
      media: tda7432: fix spelling mistake "maximium" -> "maximum" · fbdefb67
      Colin Ian King authored
      There is a spelling mistake in the module description as well
      as a comment. Fix them.
      Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      fbdefb67
    • Hans Verkuil's avatar
      media: vivid: add req_validate error injection · a4b3675f
      Hans Verkuil authored
      Add a new vivid button control to inject an error into the
      req_validate request callback.
      
      This will help testing with v4l2-compliance.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      a4b3675f
    • Jasmin Jessich's avatar
      media: adv7604 added include of linux/interrupt.h · 191cf8b0
      Jasmin Jessich authored
      On older Kernels (prior to 4.15) irqreturn_t and devm_request_threaded_irq
      is not defined when compiling adv7604.c. It seems more recent Kernels
      include it via another header which is included by adv7604.c.
      Now we include linux/interrupt.h explicitly to get the type also defined
      for Kernels prior to 4.15.
      Signed-off-by: default avatarJasmin Jessich <jasmin@anw.at>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      191cf8b0
    • Michael Tretter's avatar
      media: v4l2-pci-skeleton: depend on CONFIG_SAMPLES · ba08e61a
      Michael Tretter authored
      Commit 0185f850 ("[media] samples: v4l: from Documentation to
      samples directory") moved the v4l2-pci-skeleton driver to the samples
      directory. The samples are only be built, if CONFIG_SAMPLES is enabled.
      
      Therefore, VIDEO_PCI_SKELETON is not enough to build the
      v4l2-pci-skeleton driver, but SAMPLES needs to be enabled, too. Let
      VIDEO_PCI_SKELETON depend on SAMPLES.
      Signed-off-by: default avatarMichael Tretter <m.tretter@pengutronix.de>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      ba08e61a
    • Michael Tretter's avatar
      media: v4l2-pci-skeleton: replace vb2_buffer with vb2_v4l2_buffer · b52b88ce
      Michael Tretter authored
      Commit 2d700715 ("[media] media: videobuf2: Restructure vb2_buffer")
      replaced vb2_buffer with vb2_v4l2_buffer in all v4l2 drivers. The
      restructuring skipped the v4l2-pci-skeleton, probably because it resides
      outside the drivers directory.
      
      The v4l2_buf_ops assume that the passed buffer is a vb2_v4l2_buffer.
      This is not the case if the skel_buffer is based on vb2_buffer instead
      of vb2_v4l2_buffer.
      
      Replace vb2_buffer with vb2_v4l2_buffer in the skeleton to make sure
      that future drivers that are based on the skeleton use vb2_v4l2_buffer.
      Signed-off-by: default avatarMichael Tretter <m.tretter@pengutronix.de>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      b52b88ce