[media] em28xx: simplify device state tracking
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Thu, 27 Dec 2012 22:02:43 +0000 (19:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Jan 2013 03:09:39 +0000 (01:09 -0200)
commit2665c2995d6a6026cfc9ec118908dfccb74fb5e0
treeef731f712fc9c95dfdf869434c7ffd37abce892f
parentd3829fadc4611e96aa360b8ead5adefdf61f45ea
[media] em28xx: simplify device state tracking

DEV_INITIALIZED of enum em28xx_dev_state state is used nowhere and there is no
need for DEV_MISCONFIGURED, so remove this enum and use a boolean field
'disconnected' in the device struct instead.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-cards.c
drivers/media/usb/em28xx/em28xx-core.c
drivers/media/usb/em28xx/em28xx-dvb.c
drivers/media/usb/em28xx/em28xx-video.c
drivers/media/usb/em28xx/em28xx.h