staging: vt6656: replace al2230_power_table array with formula.
authorMalcolm Priestley <tvboxspy@gmail.com>
Thu, 2 Apr 2020 20:45:21 +0000 (21:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Apr 2020 06:55:28 +0000 (08:55 +0200)
commit5035fc5915461fd979a78f0118d6040323f49c76
treee9dd5c2958cc3c0822ed8280aa75163d14a9c621
parentd12d96ff66b7a131afc78c217382bdd9ca488ad2
staging: vt6656: replace al2230_power_table array with formula.

The power table can replaced with calculation 0x0404090 | (power << 12)
removing array and length macro.

variable power never goes beyond the maximum setting.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/e277409a-4509-d09c-515d-59b952f8310d@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/rf.c