Skip to content

Commit

Permalink
remove sonypi_camera_command()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Adrian Bunk authored and Linus Torvalds committed Jul 16, 2007
1 parent 759448f commit c289dca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
47 changes: 0 additions & 47 deletions drivers/char/sonypi.c
Original file line number Diff line number Diff line change
Expand Up @@ -885,53 +885,6 @@ static irqreturn_t sonypi_irq(int irq, void *dev_id)
return IRQ_HANDLED;
}

/* External camera command (exported to the motion eye v4l driver) */
int sonypi_camera_command(int command, u8 value)
{
if (!camera)
return -EIO;

mutex_lock(&sonypi_device.lock);

switch (command) {
case SONYPI_COMMAND_SETCAMERA:
if (value)
sonypi_camera_on();
else
sonypi_camera_off();
break;
case SONYPI_COMMAND_SETCAMERABRIGHTNESS:
sonypi_set(SONYPI_CAMERA_BRIGHTNESS, value);
break;
case SONYPI_COMMAND_SETCAMERACONTRAST:
sonypi_set(SONYPI_CAMERA_CONTRAST, value);
break;
case SONYPI_COMMAND_SETCAMERAHUE:
sonypi_set(SONYPI_CAMERA_HUE, value);
break;
case SONYPI_COMMAND_SETCAMERACOLOR:
sonypi_set(SONYPI_CAMERA_COLOR, value);
break;
case SONYPI_COMMAND_SETCAMERASHARPNESS:
sonypi_set(SONYPI_CAMERA_SHARPNESS, value);
break;
case SONYPI_COMMAND_SETCAMERAPICTURE:
sonypi_set(SONYPI_CAMERA_PICTURE, value);
break;
case SONYPI_COMMAND_SETCAMERAAGC:
sonypi_set(SONYPI_CAMERA_AGC, value);
break;
default:
printk(KERN_ERR "sonypi: sonypi_camera_command invalid: %d\n",
command);
break;
}
mutex_unlock(&sonypi_device.lock);
return 0;
}

EXPORT_SYMBOL(sonypi_camera_command);

static int sonypi_misc_fasync(int fd, struct file *filp, int on)
{
int retval;
Expand Down
2 changes: 0 additions & 2 deletions include/linux/sonypi.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@
#define SONYPI_COMMAND_GETCAMERAROMVERSION 18 /* obsolete */
#define SONYPI_COMMAND_GETCAMERAREVISION 19 /* obsolete */

int sonypi_camera_command(int command, u8 value);

#endif /* __KERNEL__ */

#endif /* _SONYPI_H_ */

0 comments on commit c289dca

Please sign in to comment.