Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
47846941
Commit
47846941
authored
May 14, 2024
by
Jiri Kosina
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-6.10/sony' into for-linus
parents
4fd2313d
45bf5edd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
drivers/hid/hid-sony.c
drivers/hid/hid-sony.c
+2
-5
No files found.
drivers/hid/hid-sony.c
View file @
47846941
...
...
@@ -1844,8 +1844,7 @@ static int sony_set_device_id(struct sony_sc *sc)
* All others are set to -1.
*/
if
(
sc
->
quirks
&
SIXAXIS_CONTROLLER
)
{
ret
=
ida_simple_get
(
&
sony_device_id_allocator
,
0
,
0
,
GFP_KERNEL
);
ret
=
ida_alloc
(
&
sony_device_id_allocator
,
GFP_KERNEL
);
if
(
ret
<
0
)
{
sc
->
device_id
=
-
1
;
return
ret
;
...
...
@@ -1861,7 +1860,7 @@ static int sony_set_device_id(struct sony_sc *sc)
static
void
sony_release_device_id
(
struct
sony_sc
*
sc
)
{
if
(
sc
->
device_id
>=
0
)
{
ida_
simple_remov
e
(
&
sony_device_id_allocator
,
sc
->
device_id
);
ida_
fre
e
(
&
sony_device_id_allocator
,
sc
->
device_id
);
sc
->
device_id
=
-
1
;
}
}
...
...
@@ -2016,8 +2015,6 @@ static int sony_input_configured(struct hid_device *hdev,
}
else
if
(
sc
->
quirks
&
MOTION_CONTROLLER
)
{
sony_init_output_report
(
sc
,
motion_send_output_report
);
}
else
{
ret
=
0
;
}
if
(
sc
->
quirks
&
SONY_LED_SUPPORT
)
{
...
...
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