staging: vt6656: Add formula to the vnt_rf_addpower function
authorOscar Carter <oscar.carter@gmx.com>
Sat, 25 Apr 2020 14:15:14 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2020 12:19:13 +0000 (14:19 +0200)
commit345f2d84dd1a749b4711eca88a98c12a87e39c18
tree864e5ee594e504c6c8f4404cb312265acaa648ad
parentf5e5e3024c1ea8b7dd04f5ac3f89afe08d470233
staging: vt6656: Add formula to the vnt_rf_addpower function

Use a formula to calculate the return value of the vnt_rf_addpower
function instead of the "if" statement with literal values for every
case.

Signed-off-by: Oscar Carter <oscar.carter@gmx.com>
Link: https://lore.kernel.org/r/20200425141514.5528-1-oscar.carter@gmx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rf.c