OSDN Git Service

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)
commit4a089668ef22c295ed4997289cc48446c849249c
treefa9775559b38cbd3488f0615cc6476557c8b6327
parent0086085b30937416d8b04a8ece698adcba8ef497
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