aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/sonypi.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-07-16 02:40:42 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:46 -0400
commitc289dca37917338fc8ab2e0d7e202a1c927e229e (patch)
treedae432d46376b75b6f3f973a61289e949f751a3d /drivers/char/sonypi.c
parent759448f459234bfcf34b82471f0dba77a9aca498 (diff)
remove sonypi_camera_command()
Remove the no longer used sonypi_camera_command(). Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Mattia Dongili <malattia@linux.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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;