]> git.baikalelectronics.ru Git - kernel.git/commit
media: ngene: cleanup superfluous I2C adapter evaluation
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 22 Apr 2018 16:06:51 +0000 (12:06 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 13:42:40 +0000 (09:42 -0400)
commit8a0c597ff820a0fe1484bc7c94a9032b82e461d9
tree7c5350061e1b7137febda0a46bb8ae1de2343021
parentcec5634327eb0e04a10dfcf255e094bb22816375
media: ngene: cleanup superfluous I2C adapter evaluation

Commit fa5057bada4c ("media: ngene: deduplicate I2C adapter evaluation")
added a helper to evaluate the I2C adapter to be used for demod/tuner
attachment based on the given ngene_channel, and that helper is used in
many attach functions to initialise the i2c_adapter variable. However,
for some reason in tuner_attach_stv6110() and demod_attach_stv0900(), the
adapter evaluation wasn't removed as in all other functions. Fix (or
finalize, even) the helper use by cleaning up the superfluous I2C adapter
evaluation leftover in these two functions.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ngene/ngene-cards.c