]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
media: meye: allow building it with COMPILE_TEST on non-x86
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 20 Apr 2018 15:55:13 +0000 (11:55 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 15:41:58 +0000 (11:41 -0400)
This driver depends on sony-laptop driver, but this is available
only for x86. So, add a stub function, in order to allow building
it on non-x86 too.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/meye/Kconfig
include/linux/sony-laptop.h

index b4bf848be5a031b6d7ae7fa16b938ec1659919d7..2e60334ffef57447fff51327e394f22fc640f912 100644 (file)
@@ -1,6 +1,7 @@
 config VIDEO_MEYE
        tristate "Sony Vaio Picturebook Motion Eye Video For Linux"
-       depends on PCI && SONY_LAPTOP && VIDEO_V4L2
+       depends on PCI && VIDEO_V4L2
+       depends on SONY_LAPTOP || COMPILE_TEST
        ---help---
          This is the video4linux driver for the Motion Eye camera found
          in the Vaio Picturebook laptops. Please read the material in
index 1a4b77317fa164406622759d8b91012d4586e5f2..374d0fdb07437d9be03a1a32708a02bffd7698b1 100644 (file)
 #define SONY_PIC_COMMAND_GETCAMERAROMVERSION   18      /* obsolete */
 #define SONY_PIC_COMMAND_GETCAMERAREVISION     19      /* obsolete */
 
+#if IS_ENABLED(CONFIG_SONY_LAPTOP)
 int sony_pic_camera_command(int command, u8 value);
+#else
+static inline int sony_pic_camera_command(int command, u8 value) { return 0; };
+#endif
 
 #endif /* __KERNEL__ */