Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
09d0e2bd
Commit
09d0e2bd
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
maXTouch: Be consistent. Failure return values are not just non-zero, but negative
parent
4afc23d1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/input/mxt.c
+5
-5
5 additions, 5 deletions
drivers/input/mxt.c
with
5 additions
and
5 deletions
drivers/input/mxt.c
+
5
−
5
View file @
09d0e2bd
...
...
@@ -1382,7 +1382,7 @@ static int mxt_getobjtab(FAR struct mxt_dev_s *priv)
tabsize
=
priv
->
info
.
nobjects
*
sizeof
(
struct
mxt_object_s
);
ret
=
mxt_getreg
(
priv
,
MXT_OBJECT_START
,
(
FAR
uint8_t
*
)
priv
->
objtab
,
tabsize
);
if
(
ret
)
if
(
ret
<
0
)
{
return
ret
;
}
...
...
@@ -1507,7 +1507,7 @@ static int mxt_hwinitialize(FAR struct mxt_dev_s *priv)
/* Get object table information */
ret
=
mxt_getobjtab
(
priv
);
if
(
ret
)
if
(
ret
<
0
)
{
goto
errout_with_objtab
;
}
...
...
@@ -1520,7 +1520,7 @@ static int mxt_hwinitialize(FAR struct mxt_dev_s *priv)
/* Update matrix size in the info structure */
ret
=
mxt_getreg
(
priv
,
MXT_MATRIX_X_SIZE
,
(
FAR
uint8_t
*
)
&
regval
,
1
);
if
(
ret
)
if
(
ret
<
0
)
{
goto
errout_with_objtab
;
}
...
...
@@ -1528,7 +1528,7 @@ static int mxt_hwinitialize(FAR struct mxt_dev_s *priv)
info
->
xsize
=
regval
;
ret
=
mxt_getreg
(
priv
,
MXT_MATRIX_Y_SIZE
,
(
FAR
uint8_t
*
)
&
regval
,
1
);
if
(
ret
)
if
(
ret
<
0
)
{
goto
errout_with_objtab
;
}
...
...
@@ -1577,7 +1577,7 @@ static int mxt_hwinitialize(FAR struct mxt_dev_s *priv)
/* Force the CHG pin to the high state */
ret
=
mxt_chghigh
(
priv
);
if
(
ret
)
if
(
ret
<
0
)
{
goto
errout_with_sample
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment