diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-04-20 11:55:13 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-05-05 11:41:58 -0400 |
commit | 6159e12e11770fb25e748af90f6c5206c1df09ee (patch) | |
tree | 3d92733b1857ad4ded93ca3e42f3e57762cebbe7 /include/linux/sony-laptop.h | |
parent | 51d4fd2b87e0d01f88b3b74e1cf312fc66446708 (diff) | |
download | lwn-6159e12e11770fb25e748af90f6c5206c1df09ee.tar.gz lwn-6159e12e11770fb25e748af90f6c5206c1df09ee.zip |
media: meye: allow building it with COMPILE_TEST on non-x86
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>
Diffstat (limited to 'include/linux/sony-laptop.h')
-rw-r--r-- | include/linux/sony-laptop.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/sony-laptop.h b/include/linux/sony-laptop.h index 1a4b77317fa1..374d0fdb0743 100644 --- a/include/linux/sony-laptop.h +++ b/include/linux/sony-laptop.h @@ -28,7 +28,11 @@ #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__ */ |