]> git.baikalelectronics.ru Git - kernel.git/commit
media: em28xx-cards: rework the em28xx probing code
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 3 Mar 2018 18:11:11 +0000 (13:11 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 10:54:54 +0000 (05:54 -0500)
commit8159257ad7152db72469c412ab2f383063ec8f3c
treefa9775559b38cbd3488f0615cc6476557c8b6327
parent38602e363ab14a90bd1f9987dc68e68e7bf69035
media: em28xx-cards: rework the em28xx probing code

There is a complex loop there with identifies the em28xx
endpoints. It has lots of identations inside, and big names,
making harder to understand.

Simplify it by moving the main logic into a static function.

While here, rename "interface" var to "intf".

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/em28xx/em28xx-cards.c