linux/include/linux/sony-laptop.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _SONYLAPTOP_H_
#define _SONYLAPTOP_H_

#include <linux/types.h>

#ifdef __KERNEL__

/* used only for communication between v4l and sony-laptop */

#define SONY_PIC_COMMAND_GETCAMERA
#define SONY_PIC_COMMAND_SETCAMERA
#define SONY_PIC_COMMAND_GETCAMERABRIGHTNESS
#define SONY_PIC_COMMAND_SETCAMERABRIGHTNESS
#define SONY_PIC_COMMAND_GETCAMERACONTRAST
#define SONY_PIC_COMMAND_SETCAMERACONTRAST
#define SONY_PIC_COMMAND_GETCAMERAHUE
#define SONY_PIC_COMMAND_SETCAMERAHUE
#define SONY_PIC_COMMAND_GETCAMERACOLOR
#define SONY_PIC_COMMAND_SETCAMERACOLOR
#define SONY_PIC_COMMAND_GETCAMERASHARPNESS
#define SONY_PIC_COMMAND_SETCAMERASHARPNESS
#define SONY_PIC_COMMAND_GETCAMERAPICTURE
#define SONY_PIC_COMMAND_SETCAMERAPICTURE
#define SONY_PIC_COMMAND_GETCAMERAAGC
#define SONY_PIC_COMMAND_SETCAMERAAGC
#define SONY_PIC_COMMAND_GETCAMERADIRECTION
#define SONY_PIC_COMMAND_GETCAMERAROMVERSION
#define SONY_PIC_COMMAND_GETCAMERAREVISION

#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__ */

#endif /* _SONYLAPTOP_H_ */