History

[media] media: lirc_dev: introduce lirc_allocate_device and lirc_free_device

Introduce two new functions so that the API for lirc_dev matches that of the rc-core and input subsystems. This means that lirc_dev structs are managed using the usual four functions: lirc_allocate_device lirc_free_device lirc_register_device lirc_unregister_device The functions are pretty simplistic at this point, later patches will put more flesh on the bones of both.

David Härdeman committed 9 years ago

Commit 6ecccc31 parent 5ddc9c03 files · +18 −6Browse files

Showing the changes to include/media/lirc_dev.h (1 of 3 files). Show all

Unified · Split

include/media/lirc_dev.h+4−5
@@ -156,11 +156,10 @@ struct lirc_dev { · 155 unmodified lines
156 struct irctl *irctl;156 struct irctl *irctl;
157};157};
158 158
159/* following functions can be called ONLY from user context159struct lirc_dev *lirc_allocate_device(void);
160 *160
161 * returns negative value on error or zero161void lirc_free_device(struct lirc_dev *d);
162 * contents of the structure pointed by p is copied162
163 */
164int lirc_register_device(struct lirc_dev *d);163int lirc_register_device(struct lirc_dev *d);
165 164
166void lirc_unregister_device(struct lirc_dev *d);165void lirc_unregister_device(struct lirc_dev *d);