]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ACPI: property: Add code comments explaining what is going on
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Oct 2025 23:00:06 +0000 (19:00 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Oct 2025 14:23:21 +0000 (16:23 +0200)
commitfeb1d463d73441ae2d35e5ccde91cd9c8552d207
tree6d0f94df6a7fcf084b1bfd33f79ecf404b36c107
parent9a15de2a3ae5839b7f4efc823c1c82914bf089bb
ACPI: property: Add code comments explaining what is going on

[ Upstream commit 737c3a09dcf69ba2814f3674947ccaec1861c985 ]

In some places in the ACPI device properties handling code, it is
unclear why the code is what it is.  Some assumptions are not documented
and some pieces of code are based on knowledge that is not mentioned
anywhere.

Add code comments explaining these things.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Stable-dep-of: baf60d5cb8bc ("ACPI: property: Do not pass NULL handles to acpi_attach_data()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/property.c