diff options
-rw-r--r-- | drivers/char/sonypi.c | 47 | ||||
-rw-r--r-- | include/linux/sonypi.h | 2 |
2 files changed, 0 insertions, 49 deletions
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 3ef593a9015f..73037a4d3c50 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -885,53 +885,6 @@ found: | |||
885 | return IRQ_HANDLED; | 885 | return IRQ_HANDLED; |
886 | } | 886 | } |
887 | 887 | ||
888 | /* External camera command (exported to the motion eye v4l driver) */ | ||
889 | int sonypi_camera_command(int command, u8 value) | ||
890 | { | ||
891 | if (!camera) | ||
892 | return -EIO; | ||
893 | |||
894 | mutex_lock(&sonypi_device.lock); | ||
895 | |||
896 | switch (command) { | ||
897 | case SONYPI_COMMAND_SETCAMERA: | ||
898 | if (value) | ||
899 | sonypi_camera_on(); | ||
900 | else | ||
901 | sonypi_camera_off(); | ||
902 | break; | ||
903 | case SONYPI_COMMAND_SETCAMERABRIGHTNESS: | ||
904 | sonypi_set(SONYPI_CAMERA_BRIGHTNESS, value); | ||
905 | break; | ||
906 | case SONYPI_COMMAND_SETCAMERACONTRAST: | ||
907 | sonypi_set(SONYPI_CAMERA_CONTRAST, value); | ||
908 | break; | ||
909 | case SONYPI_COMMAND_SETCAMERAHUE: | ||
910 | sonypi_set(SONYPI_CAMERA_HUE, value); | ||
911 | break; | ||
912 | case SONYPI_COMMAND_SETCAMERACOLOR: | ||
913 | sonypi_set(SONYPI_CAMERA_COLOR, value); | ||
914 | break; | ||
915 | case SONYPI_COMMAND_SETCAMERASHARPNESS: | ||
916 | sonypi_set(SONYPI_CAMERA_SHARPNESS, value); | ||
917 | break; | ||
918 | case SONYPI_COMMAND_SETCAMERAPICTURE: | ||
919 | sonypi_set(SONYPI_CAMERA_PICTURE, value); | ||
920 | break; | ||
921 | case SONYPI_COMMAND_SETCAMERAAGC: | ||
922 | sonypi_set(SONYPI_CAMERA_AGC, value); | ||
923 | break; | ||
924 | default: | ||
925 | printk(KERN_ERR "sonypi: sonypi_camera_command invalid: %d\n", | ||
926 | command); | ||
927 | break; | ||
928 | } | ||
929 | mutex_unlock(&sonypi_device.lock); | ||
930 | return 0; | ||
931 | } | ||
932 | |||
933 | EXPORT_SYMBOL(sonypi_camera_command); | ||
934 | |||
935 | static int sonypi_misc_fasync(int fd, struct file *filp, int on) | 888 | static int sonypi_misc_fasync(int fd, struct file *filp, int on) |
936 | { | 889 | { |
937 | int retval; | 890 | int retval; |
diff --git a/include/linux/sonypi.h b/include/linux/sonypi.h index 34d4b075f7b8..40c7b5d993b9 100644 --- a/include/linux/sonypi.h +++ b/include/linux/sonypi.h | |||
@@ -153,8 +153,6 @@ | |||
153 | #define SONYPI_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */ | 153 | #define SONYPI_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */ |
154 | #define SONYPI_COMMAND_GETCAMERAREVISION 19 /* obsolete */ | 154 | #define SONYPI_COMMAND_GETCAMERAREVISION 19 /* obsolete */ |
155 | 155 | ||
156 | int sonypi_camera_command(int command, u8 value); | ||
157 | |||
158 | #endif /* __KERNEL__ */ | 156 | #endif /* __KERNEL__ */ |
159 | 157 | ||
160 | #endif /* _SONYPI_H_ */ | 158 | #endif /* _SONYPI_H_ */ |