]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: simplify argument passing to em28xx_init_dev()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 7 Jan 2012 13:18:45 +0000 (10:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 11 Jan 2012 00:46:48 +0000 (22:46 -0200)
commit9a8ffe7e1735113d613531c3f984cb3f136cd904
tree691a1c3ac3c54ef8e422dc55eeb9d0913951dec5
parent0a8a0dc748de63b5f14d3fbf2a995032dc7871fa
[media] em28xx: simplify argument passing to em28xx_init_dev()

The 'struct em28xx *' pointer was passed by reference to the
em28xx_init_dev() function, for no reason. Instead, just pass it by
value, which is much more logical and simple.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/em28xx/em28xx-cards.c