aboutsummaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorGravatar Daniel Scally <djrscally@gmail.com> 2021-01-07 14:28:36 +0100
committerGravatar Mauro Carvalho Chehab <mchehab+huawei@kernel.org> 2021-01-26 19:34:29 +0100
commitbf263f64e804a74ace9bd37f49341d68a653e5e6 (patch)
treeddd17a9a5542b38da413fe6b6097e06744e099f8 /include/media
parentmedia: v4l2-core: v4l2-async: Check sd->fwnode->secondary in match_fwnode() (diff)
downloadlinux-bf263f64e804a74ace9bd37f49341d68a653e5e6.tar.gz
linux-bf263f64e804a74ace9bd37f49341d68a653e5e6.tar.bz2
linux-bf263f64e804a74ace9bd37f49341d68a653e5e6.zip
media: ACPI / bus: Add acpi_dev_get_next_match_dev() and helper macro
To ensure we handle situations in which multiple sensors of the same model (and therefore _HID) are present in a system, we need to be able to iterate over devices matching a known _HID but unknown _UID and _HRV - add acpi_dev_get_next_match_dev() to accommodate that possibility and change acpi_dev_get_first_match_dev() to simply call the new function with a NULL starting point. Add an iterator macro for convenience. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Daniel Scally <djrscally@gmail.com> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions