hwmon: (dell-smm) Improve warning messages
authorArmin Wolf <W_Armin@gmx.de>
Mon, 22 Aug 2022 17:40:53 +0000 (19:40 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 19 Sep 2022 13:17:05 +0000 (06:17 -0700)
commit6ebab74e0973cb4c5bb60c8ce7c5d76943e180c5
tree390f7fa93e76ae2900017282f804eae88f3dafa3
parentb7b568c2525b3a59a49eaf81ad4f283f0c25b5b6
hwmon: (dell-smm) Improve warning messages

When dell-smm-hwmon is loaded on a machine with a buggy BIOS
with the option "force" being enabled, it wrongly prints
that the buggy features where disabled. This may cause
users to wrongly assume that the driver still protects them
from these BIOS bugs even with "force" being enabled.

Replace the messages with two messages each which are depending
on the value of the "force" parameter. The messages which are
being printed when "force" is not set use dev_notice() instead
of dev_warn() since they only serve as a notice.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20220822174053.8750-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/dell-smm-hwmon.c