aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-05-24 15:38:16 -0700
committerGuenter Roeck <linux@roeck-us.net>2024-05-29 15:23:54 -0700
commitbe7d9294a411aa116d9f5874bd0ad982bb3eb7cc (patch)
treeccf2972b4d75aa678b147b010daf9a3b05cc1e69 /drivers
parent5997eb60f896830126bc1783465b678b110e2fdd (diff)
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')
-rw-r--r--drivers/hwmon/nct6683.c2
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);