Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
9de48cc3
Commit
9de48cc3
authored
Sep 13, 2009
by
Henrik Rydberg
Committed by
Dmitry Torokhov
Sep 13, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Input: bcm5974 - silence uninitialized variables warnings
Signed-off-by:
Dmitry Torokhov
<
dtor@mail.ru
>
parent
85927b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
15 deletions
+16
-15
drivers/input/mouse/bcm5974.c
drivers/input/mouse/bcm5974.c
+16
-15
No files found.
drivers/input/mouse/bcm5974.c
View file @
9de48cc3
...
...
@@ -317,7 +317,7 @@ static int report_tp_state(struct bcm5974 *dev, int size)
const
struct
tp_finger
*
f
;
struct
input_dev
*
input
=
dev
->
input
;
int
raw_p
,
raw_w
,
raw_x
,
raw_y
,
raw_n
;
int
ptest
=
0
,
origin
=
0
,
ibt
=
0
,
nmin
=
0
,
nmax
=
0
;
int
ptest
,
origin
,
ibt
=
0
,
nmin
=
0
,
nmax
=
0
;
int
abs_p
=
0
,
abs_w
=
0
,
abs_x
=
0
,
abs_y
=
0
;
if
(
size
<
c
->
tp_offset
||
(
size
-
c
->
tp_offset
)
%
SIZEOF_FINGER
!=
0
)
...
...
@@ -345,21 +345,22 @@ static int report_tp_state(struct bcm5974 *dev, int size)
/* set the integrated button if applicable */
if
(
c
->
tp_type
==
TYPE2
)
ibt
=
raw2int
(
dev
->
tp_data
[
BUTTON_TYPE2
]);
}
/* while tracking finger still valid, count all fingers */
if
(
ptest
>
PRESSURE_LOW
&&
origin
)
{
abs_p
=
ptest
;
abs_w
=
int2bound
(
&
c
->
w
,
raw_w
);
abs_x
=
int2bound
(
&
c
->
x
,
raw_x
-
c
->
x
.
devmin
);
abs_y
=
int2bound
(
&
c
->
y
,
c
->
y
.
devmax
-
raw_y
);
while
(
raw_n
--
)
{
ptest
=
int2bound
(
&
c
->
p
,
raw2int
(
f
->
force_major
));
if
(
ptest
>
PRESSURE_LOW
)
nmax
++
;
if
(
ptest
>
PRESSURE_HIGH
)
nmin
++
;
f
++
;
/* while tracking finger still valid, count all fingers */
if
(
ptest
>
PRESSURE_LOW
&&
origin
)
{
abs_p
=
ptest
;
abs_w
=
int2bound
(
&
c
->
w
,
raw_w
);
abs_x
=
int2bound
(
&
c
->
x
,
raw_x
-
c
->
x
.
devmin
);
abs_y
=
int2bound
(
&
c
->
y
,
c
->
y
.
devmax
-
raw_y
);
while
(
raw_n
--
)
{
ptest
=
int2bound
(
&
c
->
p
,
raw2int
(
f
->
force_major
));
if
(
ptest
>
PRESSURE_LOW
)
nmax
++
;
if
(
ptest
>
PRESSURE_HIGH
)
nmin
++
;
f
++
;
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment