diff options
author | Guenter Roeck <linux@roeck-us.net> | 2024-05-25 01:38:16 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2024-05-30 01:23:54 +0300 |
commit | be7d9294a411aa116d9f5874bd0ad982bb3eb7cc (patch) | |
tree | ccf2972b4d75aa678b147b010daf9a3b05cc1e69 /drivers/hwmon/nct6683.c | |
parent | 5997eb60f896830126bc1783465b678b110e2fdd (diff) | |
download | linux-be7d9294a411aa116d9f5874bd0ad982bb3eb7cc.tar.xz |
hwmon: (nct6683) Display warning when enabling driver for unknown customer
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>
Diffstat (limited to 'drivers/hwmon/nct6683.c')
-rw-r--r-- | drivers/hwmon/nct6683.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/hwmon/nct6683.c b/drivers/hwmon/nct6683.c index 0d016fedb9c2..f71615e06a8f 100644 --- a/drivers/hwmon/nct6683.c +++ b/drivers/hwmon/nct6683.c @@ -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); |