lkml.org 
[lkml]   [2008]   [Jan]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] bw-qcam: Rename parameter 'aggressive' to 'force_init'
Date
Changed new parameter name to 'force_init' for clarity, as per feedback.

Signed-off-by: Brett T. Warden <brett.warden@gmail.com>
---
drivers/media/video/bw-qcam.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c
index b74a9cb..0322653 100644
--- a/drivers/media/video/bw-qcam.c
+++ b/drivers/media/video/bw-qcam.c
@@ -82,15 +82,15 @@ OTHER DEALINGS IN THE SOFTWARE.
static unsigned int maxpoll=250; /* Maximum busy-loop count for qcam I/O */
static unsigned int yieldlines=4; /* Yield after this many during capture */
static int video_nr = -1;
-static unsigned int aggressive; /* Whether to probe aggressively */
+static unsigned int force_init; /* Whether to probe aggressively */

module_param(maxpoll, int, 0);
module_param(yieldlines, int, 0);
module_param(video_nr, int, 0);

-/* Set aggressive=1 to avoid detection by polling status register and
+/* Set force_init=1 to avoid detection by polling status register and
* immediately attempt to initialize qcam */
-module_param(aggressive, int, 0);
+module_param(force_init, int, 0);

static inline int read_lpstatus(struct qcam_device *q)
{
@@ -336,7 +336,7 @@ static int qc_detect(struct qcam_device *q)
int count = 0;
int i;

- if (aggressive)
+ if (force_init)
return 1;

lastreg = reg = read_lpstatus(q) & 0xf0;
--
1.5.3.7


\
 
 \ /
  Last update: 2008-01-03 00:53    [W:0.102 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site