1. 05 Dec, 2018 35 commits
  2. 03 Dec, 2018 5 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