projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5997eb6
)
hwmon: (nct6683) Display warning when enabling driver for unknown customer
author
Guenter Roeck
<linux@roeck-us.net>
Fri, 24 May 2024 22:38:16 +0000
(15:38 -0700)
committer
Guenter 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hwmon/nct6683.c
b/drivers/hwmon/nct6683.c
index 0d016fedb9c2ebebfd81ceda3613513e6c3bb812..f71615e06a8fb98c78a4ad690007e79a5619db8a 100644
(file)
--- 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);