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
87ad2360
Commit
87ad2360
authored
Apr 08, 2022
by
Rafael J. Wysocki
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpi-bus'
* acpi-bus: ACPI: bus: Eliminate acpi_bus_get_device()
parents
dfbba251
ac2a3fee
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
15 deletions
+2
-15
drivers/acpi/scan.c
drivers/acpi/scan.c
+0
-13
drivers/spi/spi.c
drivers/spi/spi.c
+2
-1
include/acpi/acpi_bus.h
include/acpi/acpi_bus.h
+0
-1
No files found.
drivers/acpi/scan.c
View file @
87ad2360
...
...
@@ -588,19 +588,6 @@ static struct acpi_device *handle_to_device(acpi_handle handle,
return
adev
;
}
int
acpi_bus_get_device
(
acpi_handle
handle
,
struct
acpi_device
**
device
)
{
if
(
!
device
)
return
-
EINVAL
;
*
device
=
handle_to_device
(
handle
,
NULL
);
if
(
!*
device
)
return
-
ENODEV
;
return
0
;
}
EXPORT_SYMBOL
(
acpi_bus_get_device
);
/**
* acpi_fetch_acpi_dev - Retrieve ACPI device object.
* @handle: ACPI handle associated with the requested ACPI device object.
...
...
drivers/spi/spi.c
View file @
87ad2360
...
...
@@ -2406,7 +2406,8 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
}
else
{
struct
acpi_device
*
adev
;
if
(
acpi_bus_get_device
(
parent_handle
,
&
adev
))
adev
=
acpi_fetch_acpi_dev
(
parent_handle
);
if
(
!
adev
)
return
-
ENODEV
;
ctlr
=
acpi_spi_find_controller_by_adev
(
adev
);
...
...
include/acpi/acpi_bus.h
View file @
87ad2360
...
...
@@ -509,7 +509,6 @@ extern int unregister_acpi_notifier(struct notifier_block *);
* External Functions
*/
int
acpi_bus_get_device
(
acpi_handle
handle
,
struct
acpi_device
**
device
);
struct
acpi_device
*
acpi_fetch_acpi_dev
(
acpi_handle
handle
);
acpi_status
acpi_bus_get_status_handle
(
acpi_handle
handle
,
unsigned
long
long
*
sta
);
...
...
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