LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] stk-sensor.c: make 2 functions static
@ 2008-01-28 22:10 Adrian Bunk
  2008-01-29 17:10 ` Jaime Velasco Juan
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-01-28 22:10 UTC (permalink / raw)
  To: Jaime Velasco Juan, Mauro Carvalho Chehab
  Cc: v4l-dvb-maintainer, linux-kernel

This patch makes the following needlessly global functions static:
- stk_sensor_outb()
- stk_sensor_inb()

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 drivers/media/video/stk-sensor.c |    4 ++--
 drivers/media/video/stk-webcam.h |    2 --
 2 files changed, 2 insertions(+), 4 deletions(-)

8e641823e6d54c8d45f6406bcd6716cbed81cb4e 
diff --git a/drivers/media/video/stk-sensor.c b/drivers/media/video/stk-sensor.c
index 4a9a0b6..1ce8cc8 100644
--- a/drivers/media/video/stk-sensor.c
+++ b/drivers/media/video/stk-sensor.c
@@ -225,7 +225,7 @@
 
 
 /* Returns 0 if OK */
-int stk_sensor_outb(struct stk_camera *dev, u8 reg, u8 val)
+static int stk_sensor_outb(struct stk_camera *dev, u8 reg, u8 val)
 {
 	int i = 0;
 	int tmpval = 0;
@@ -250,7 +250,7 @@ int stk_sensor_outb(struct stk_camera *dev, u8 reg, u8 val)
 		return 0;
 }
 
-int stk_sensor_inb(struct stk_camera *dev, u8 reg, u8 *val)
+static int stk_sensor_inb(struct stk_camera *dev, u8 reg, u8 *val)
 {
 	int i = 0;
 	int tmpval = 0;
diff --git a/drivers/media/video/stk-webcam.h b/drivers/media/video/stk-webcam.h
index 7e989d1..bc9ce78 100644
--- a/drivers/media/video/stk-webcam.h
+++ b/drivers/media/video/stk-webcam.h
@@ -127,8 +127,6 @@ void stk_camera_delete(struct kref *);
 int stk_camera_write_reg(struct stk_camera *, u16, u8);
 int stk_camera_read_reg(struct stk_camera *, u16, int *);
 
-int stk_sensor_outb(struct stk_camera *dev, u8 reg, u8 val);
-int stk_sensor_inb(struct stk_camera *dev, u8 reg, u8 *val);
 int stk_sensor_init(struct stk_camera *);
 int stk_sensor_configure(struct stk_camera *);
 int stk_sensor_sleep(struct stk_camera *dev);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [2.6 patch] stk-sensor.c: make 2 functions static
  2008-01-28 22:10 [2.6 patch] stk-sensor.c: make 2 functions static Adrian Bunk
@ 2008-01-29 17:10 ` Jaime Velasco Juan
  0 siblings, 0 replies; 2+ messages in thread
From: Jaime Velasco Juan @ 2008-01-29 17:10 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: Mauro Carvalho Chehab, v4l-dvb-maintainer, linux-kernel

El mar. 29 de ene. de 2008, a las 00:10:58 +0200, Adrian Bunk escribió:
> This patch makes the following needlessly global functions static:
> - stk_sensor_outb()
> - stk_sensor_inb()
> 
> Signed-off-by: Adrian Bunk <bunk@kernel.org>
> 
Acked-by: Jaime Velasco Juan <jsagarribay@gmail.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-29 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-28 22:10 [2.6 patch] stk-sensor.c: make 2 functions static Adrian Bunk
2008-01-29 17:10 ` Jaime Velasco Juan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).