ACPI: property: Dig "rotation" property for devices with CSI2 _CRS
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 6 Nov 2023 16:28:40 +0000 (17:28 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Nov 2023 15:50:48 +0000 (16:50 +0100)
commitf533e43a2a3117cc59886cbcd66ca32e42cf1ea9
tree7df543b44330a2d45564e914b390b93abcaf8ef7
parenta6cb0a611273767683d50fb908173b6f88052ce5
ACPI: property: Dig "rotation" property for devices with CSI2 _CRS

Find the "rotation" property value for devices with _CRS CSI-2 resource
descriptors and use it to add the "rotation" property to the software
nodes representing the CSI-2 connection graph.  That value typically
comes from the _PLD (Physical Location of Device) object if it is
present for the given device.

This way, camera sensor drivers that know the "rotation" property do not
need to care about _PLD on systems using ACPI.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
[ rjw: Changelog edits, file rename ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
drivers/acpi/mipi-disco-img.c
include/acpi/acpi_bus.h