media: si2157: fix bandwidth stored in dev
authorRobert Schlabbach <robert_s@gmx.net>
Thu, 6 Jan 2022 22:51:39 +0000 (23:51 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 10 Jan 2022 14:56:25 +0000 (15:56 +0100)
commit9658105d0e5b1437db161b4227721065d44585b9
tree372a06fa28ce1bfa0c1bbb743f7db32b46e24c82
parent95c4cd1d19e3e1d4894457a6f015e3a045bc9b06
media: si2157: fix bandwidth stored in dev

Make digital tuning store the bandwidth in Hz in the private dev struct,
rather than the hardware-specific bandwidth property code, so that the
get_bandwidth() function returns the bandwidth in Hz, just as it already
does when using analog tuning.

Link: https://lore.kernel.org/linux-media/trinity-931c0e68-88af-46cc-91a1-986754798a4f-1641509499366@3c-app-gmx-bap68
Reported-by: Robert Schlabbach <robert_s@gmx.net>
Signed-off-by: Robert Schlabbach <robert_s@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/tuners/si2157.c