On Fri, Apr 20, 2018 at 8:42 PM, Mauro Carvalho Chehab
<[email protected]> wrote:
> 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.
> --- 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 */
>
> +#ifdef CONFIG_SONY_LAPTOP
IS_ENABLED(), IS_BUILTIN() ?
> 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__ */
--
With Best Regards,
Andy Shevchenko