History log of /drivers/staging/media/easycap/easycap_low.c
Revision Date Author Comments
a6ff0a06d8634a07db52dbc006fd9ce4c438c1e3 09-Nov-2011 Tomas Winkler <tomas.winkler@intel.com> [media] easycap: fix warnings: variable set but not used

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
96bec7dd72511e3c16588d9af52da2cc937f7ea1 09-Nov-2011 Tomas Winkler <tomas.winkler@intel.com> [media] easycap: add easycap prefix to global functions names

Add easycap prefix to global function to reduce
possibility of name collision.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
101dca425da49edb3093000d72490216fa322911 09-Nov-2011 Tomas Winkler <tomas.winkler@intel.com> [media] easycap: streamline the code

change statements of types
if (err)
return err
else
do something

and
if (ok)
do something
else
return err

into

if (err)
return err

do something

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
7dbb3920252dcb3662e934b134ccb5129f62cbad 09-Nov-2011 Tomas Winkler <tomas.winkler@intel.com> [media] easycap: compress initialization tables

1. saa and stk initialization tables are less then
256 entries
2. stk table can fit into u16 and saa into u8

size before
text data bss dec hex filename
105687 1072 1134800 1241559 12f1d7 easycap.ko

size after

text data bss dec hex filename
97919 1072 1134800 1233791 12d37f easycap.ko

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
98680557f3ce7eadae0ceda4484fd6c7a13ba3be 09-Nov-2011 Tomas Winkler <tomas.winkler@intel.com> [media] easycap: cleanup function usage

1. Remove declarations of none global functions from easycap.h
and make them static in the c-files.
2. Reorder static functions to reduce number of forward declarations.
3. Remove unused functions.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
4860c73804c6e7ef8e69f98958489bb2bea6f6d2 02-Nov-2011 Mauro Carvalho Chehab <mchehab@redhat.com> staging: Move media drivers to staging/media

In practice, it is being hard to distinguish when a patch
should go to staging tree or to the media tree. Better
to distinguish it, by putting the media drivers at a
separate staging directory. Newer staging drivers that include
anything with "dvb*.h", "v4l2*.h" or "videodev2.h" should
go to the drivers/staging/media tree.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>