[PATCH 01/21] gspca pac7302/pac7311: add prefix for sensor specific functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Márton Németh <nm127@xxxxxxxxxxx>

There are some functions which are already sensor specific. Mark them
with pac7302_ or pac7311_ prefix

Signed-off-by: Márton Németh <nm127@xxxxxxxxxxx>
Cc: Thomas Kaiser <thomas@xxxxxxxxxxxxxxx>
Cc: Theodore Kilgore <kilgota@xxxxxxxxxx>
Cc: Kyle Guinn <elyk03@xxxxxxxxx>
---
diff -uprN a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
--- a/drivers/media/video/gspca/pac7311.c	2009-10-30 16:12:05.000000000 +0100
+++ b/drivers/media/video/gspca/pac7311.c	2009-10-30 17:09:52.000000000 +0100
@@ -543,7 +543,7 @@ static int sd_config(struct gspca_dev *g
 }

 /* This function is used by pac7302 only */
-static void setbrightcont(struct gspca_dev *gspca_dev)
+static void pac7302_setbrightcont(struct gspca_dev *gspca_dev)
 {
 	struct sd *sd = (struct sd *) gspca_dev;
 	int i, v;
@@ -570,7 +570,7 @@ static void setbrightcont(struct gspca_d
 }

 /* This function is used by pac7311 only */
-static void setcontrast(struct gspca_dev *gspca_dev)
+static void pac7311_setcontrast(struct gspca_dev *gspca_dev)
 {
 	struct sd *sd = (struct sd *) gspca_dev;

@@ -581,7 +581,7 @@ static void setcontrast(struct gspca_dev
 }

 /* This function is used by pac7302 only */
-static void setcolors(struct gspca_dev *gspca_dev)
+static void pac7302_setcolors(struct gspca_dev *gspca_dev)
 {
 	struct sd *sd = (struct sd *) gspca_dev;
 	int i, v;
@@ -700,11 +700,11 @@ static int sd_start(struct gspca_dev *gs

 	if (sd->sensor == SENSOR_PAC7302) {
 		reg_w_var(gspca_dev, start_7302);
-		setbrightcont(gspca_dev);
-		setcolors(gspca_dev);
+		pac7302_setbrightcont(gspca_dev);
+		pac7302_setcolors(gspca_dev);
 	} else {
 		reg_w_var(gspca_dev, start_7311);
-		setcontrast(gspca_dev);
+		pac7311_setcontrast(gspca_dev);
 	}
 	setgain(gspca_dev);
 	setexposure(gspca_dev);
@@ -923,7 +923,7 @@ static int sd_setbrightness(struct gspca

 	sd->brightness = val;
 	if (gspca_dev->streaming)
-		setbrightcont(gspca_dev);
+		pac7302_setbrightcont(gspca_dev);
 	return 0;
 }

@@ -942,9 +942,9 @@ static int sd_setcontrast(struct gspca_d
 	sd->contrast = val;
 	if (gspca_dev->streaming) {
 		if (sd->sensor == SENSOR_PAC7302)
-			setbrightcont(gspca_dev);
+			pac7302_setbrightcont(gspca_dev);
 		else
-			setcontrast(gspca_dev);
+			pac7311_setcontrast(gspca_dev);
 	}
 	return 0;
 }
@@ -963,7 +963,7 @@ static int sd_setcolors(struct gspca_dev

 	sd->colors = val;
 	if (gspca_dev->streaming)
-		setcolors(gspca_dev);
+		pac7302_setcolors(gspca_dev);
 	return 0;
 }

--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux