]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: int3472: Debug log the sensor name
authorHans de Goede <hdegoede@redhat.com>
Mon, 9 Dec 2024 22:05:22 +0000 (23:05 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 13:41:26 +0000 (15:41 +0200)
Debug log the sensor name to make it easier to figure out which INT3472
device is associated with which sensor.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241209220522.25288-4-hdegoede@redhat.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/int3472/common.c

index b3a2578e06c1923808fc28e95cad59241dda3ca5..1638be8fa71e1fd280bf01c3aa33c00ee53d2148 100644 (file)
@@ -70,6 +70,8 @@ int skl_int3472_get_sensor_adev_and_name(struct device *dev,
                return -ENODEV;
        }
 
+       dev_dbg(dev, "Sensor name %s\n", acpi_dev_name(sensor));
+
        *name_ret = devm_kasprintf(dev, GFP_KERNEL, I2C_DEV_NAME_FORMAT,
                                   acpi_dev_name(sensor));
        if (!*name_ret)