]> bbs.cooldavid.org Git - net-next-2.6.git/commit
V4L/DVB: ir-core: move subsystem internal calls to ir-core-priv.h
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 8 Apr 2010 18:10:27 +0000 (15:10 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:04 +0000 (12:57 -0300)
commit3f113e36106f133752de47208816b28aa8e60f88
treedd089c1f3ec2f179338f3f4383e81b643312789c
parent724e2495502a98aaa3f93c404472a991da8ff857
V4L/DVB: ir-core: move subsystem internal calls to ir-core-priv.h

ir-core.h has the kABI to be used by the bridge drivers, when needing to register
IR protocols and pass IR events. However, the same file also contains IR subsystem
internal calls, meant to be used inside ir-core and between ir-core and the raw
decoders.

Better to move those functions to an internal header, for some reasons:

1) Header will be a little more cleaner;

2) It avoids the need of recompile everything (bridge/hardware drivers, etc),
   just because a new decoder were added, or some other internal change were needed;

3) Better organize the ir-core API, splitting the functions that are internal to
   IR core and the ancillary drivers (decoders, lirc_dev) from the features that
   should be exported to IR subsystem clients.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/ir-core-priv.h [new file with mode: 0644]
drivers/media/IR/ir-functions.c
drivers/media/IR/ir-keytable.c
drivers/media/IR/ir-nec-decoder.c
drivers/media/IR/ir-raw-event.c
drivers/media/IR/ir-rc5-decoder.c
drivers/media/IR/ir-sysfs.c
include/media/ir-core.h