media: ddbridge: split I/O related functions off from ddbridge.h
authorDaniel Scheller <d.scheller@gmx.net>
Sat, 12 Aug 2017 11:55:53 +0000 (07:55 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sun, 20 Aug 2017 11:04:53 +0000 (07:04 -0400)
commit14e27a106566aeb74b09117dbc073f210f27ffde
treea74d6761b1e85f6edf359959b8569b692dab4d23
parent22e743898dcd693cf587593781699db2fa888e23
media: ddbridge: split I/O related functions off from ddbridge.h

While it seems valid that headers can carry simple oneline static inline
annotated functions, move them into their own header file to have the
overall code more readable. Also, keep them as header (and don't put in
a separate object) and static inline to help the compiler avoid
generating function calls.

(Thanks to Jasmin J. <jasmin@anw.at> for valuable input on this!)

Cc: Jasmin J. <jasmin@anw.at>
Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Tested-by: Richard Scobie <r.scobie@clear.net.nz>
Tested-by: Jasmin Jessich <jasmin@anw.at>
Tested-by: Dietmar Spingler <d_spingler@freenet.de>
Tested-by: Manfred Knick <Manfred.Knick@t-online.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c
drivers/media/pci/ddbridge/ddbridge-i2c.c
drivers/media/pci/ddbridge/ddbridge-io.h [new file with mode: 0644]
drivers/media/pci/ddbridge/ddbridge-main.c
drivers/media/pci/ddbridge/ddbridge.h