]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
hwmon: (nct6683) Display warning when enabling driver for unknown customer
authorGuenter Roeck <linux@roeck-us.net>
Fri, 24 May 2024 22:38:16 +0000 (15:38 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 29 May 2024 22:23:54 +0000 (15:23 -0700)
Enabling the driver for devices with unknown customer ID is at least
somewhat risky, so add a warning to the kernel log.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6683.c

index 0d016fedb9c2ebebfd81ceda3613513e6c3bb812..f71615e06a8fb98c78a4ad690007e79a5619db8a 100644 (file)
@@ -1236,6 +1236,8 @@ static int nct6683_probe(struct platform_device *pdev)
        default:
                if (!force)
                        return -ENODEV;
+               dev_warn(dev, "Enabling support for unknown customer ID 0x%04x\n", data->customer_id);
+               break;
        }
 
        nct6683_init_device(data);