media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() logging
authorHans de Goede <hdegoede@redhat.com>
Wed, 5 Jul 2023 21:30:09 +0000 (23:30 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:41 +0000 (07:58 +0200)
commitfc0f5b59adf5170f0f4c2dc20c13f558e2baf64a
tree9ff19b4fe4d21482a2995499bd650cddb1bc74b0
parentf04eedb9424b8359fa788ce6b01ac3b90eedbea2
media: atomisp: csi2-bridge: Add dev_name() to acpi_handle_info() logging

acpi_handle_info() uses the ACPI path to the handle as prefix for messages
e.g. : "\_SB_.I2C2.CAM8".

This makes it hard for users to figure out which csi2-bridge messages
belong to which sensor since the actual sensor drivers uses the ACPI
device name (typically "HID:00") for logging.

Extend the acpi_handle_info() (and err and warn) logging to also log
the device name to make it easier to match csi2-bridge messages with
sensor driver log messages.

Suggested-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_csi2_bridge.c