aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/sonypi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/sonypi.c')
-rw-r--r--drivers/char/sonypi.c47
1 files changed, 0 insertions, 47 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) */
889int 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
933EXPORT_SYMBOL(sonypi_camera_command);
934
935static int sonypi_misc_fasync(int fd, struct file *filp, int on) 888static int sonypi_misc_fasync(int fd, struct file *filp, int on)
936{ 889{
937 int retval; 890 int retval;