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>
This commit is contained in:
Guenter Roeck 2024-05-24 15:38:16 -07:00
parent 5997eb60f8
commit be7d9294a4

View 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);