Skip to contentSkip to conversation

remove sonypi_camera_command()

PATCH In review Adrian Bunk 2 participants 2 messages Jun 2, 2007 – Jun 3, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 remove sonypi_camera_command()

This patch removes the no longer used sonypi_camera_command().

---

 drivers/char/sonypi.c  |   47 -----------------------------------------
 include/linux/sonypi.h |    2 -
 2 files changed, 49 deletions(-)
include/linux/sonypi.h renamed from include/linux/sonypi.h.old +0 -2
@@ -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_ */
drivers/char/sonypi.c renamed from drivers/char/sonypi.c.old +0 -47

53 lines not on this page · raw message

maintainer
#1 lore raw
Quoted 3 lines · Adrian Bunk

This patch removes the no longer used sonypi_camera_command().

Quoted 76 lines

---

 drivers/char/sonypi.c  |   47 -----------------------------------------
 include/linux/sonypi.h |    2 -
 2 files changed, 49 deletions(-)
include/linux/sonypi.h renamed from include/linux/sonypi.h.old +0 -2
@@ -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_ */
drivers/char/sonypi.c renamed from drivers/char/sonypi.c.old +0 -47
@@ -885,53 +885,6 @@
 	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;
Signature · 2 lines
mattia
:wq!