aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2020-01-06 15:42:18 +0100
committerAndy Shevchenko <[email protected]>2020-01-10 11:57:22 +0200
commit01e28c1b2963bd3782e050ff2c4901fe1ceb5192 (patch)
treefa665f7cfe09ec2d1b01c96efc39b1aff28e7dd2 /net/switchdev/switchdev.c
parent3454eeeebd115891f34aa2e76eccf08c9b0882bb (diff)
platform/x86: GPD pocket fan: Use default values when wrong modparams are given
Use our default values when wrong module-parameters are given, instead of refusing to load. Refusing to load leaves the fan at the BIOS default setting, which is "Off". The CPU's thermal throttling should protect the system from damage, but not-loading is really not the best fallback in this case. This commit fixes this by re-setting module-parameter values to their defaults if they are out of range, instead of failing the probe with -EINVAL. Cc: [email protected] Cc: Jason Anderson <[email protected]> Reported-by: Jason Anderson <[email protected]> Fixes: 594ce6db326e ("platform/x86: GPD pocket fan: Use a min-speed of 2 while charging") Signed-off-by: Hans de Goede <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions