History

ACPI / utils: Introduce acpi_dev_get_first_match_dev() helper

The acpi_dev_get_first_match_name() is missing put_device() call and thus keeping reference counting unbalanced. In order to fix the issue introduce a new helper to convert existing users one-by-one to a better API.

Andy Shevchenko committed 7 years ago

Commit 817b4d61 parent 79a3aaa3 files · +31 −2Browse files

Showing the changes to include/linux (1 of 3 files). Show all

Unified · Split

include/linux/acpi.h+6−0
@@ -669,6 +669,12 @@ static inline bool acpi_dev_present(const char *hid, const char *uid, s64 hrv) · 668 unmodified lines
669669 return false;
670670 }
671671
672+static inline struct acpi_device *
673+acpi_dev_get_first_match_dev(const char *hid, const char *uid, s64 hrv)
674+{
675+ return NULL;
676+}
677+
672678 static inline const char *
673679 acpi_dev_get_first_match_name(const char *hid, const char *uid, s64 hrv)
674680 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t