Skip to content

Commit

Permalink
Testing: Add CEC functionality
Browse files Browse the repository at this point in the history
Original patch from jodamm
  • Loading branch information
rellla committed Dec 22, 2015
1 parent 13f5e35 commit 0e1e1d5
Show file tree
Hide file tree
Showing 5 changed files with 492 additions and 755 deletions.
8 changes: 7 additions & 1 deletion drivers/video/sunxi/hdmi/dev_hdmi.c
Expand Up @@ -21,10 +21,11 @@
#include "dev_hdmi.h"
#include "drv_hdmi_i.h"
#include "../disp/dev_disp.h"
#include "hdmi_cec.h"

static struct cdev *my_cdev;
static dev_t devid;
static struct class *hdmi_class;
struct class *hdmi_class;

hdmi_info_t ghdmi;

Expand Down Expand Up @@ -168,13 +169,18 @@ hdmi_module_init(void)
if (ret == 0)
ret = platform_driver_register(&hdmi_driver);

if (ret == 0)
ret = sunxi_cec_init();

return ret;
}

static void __exit hdmi_module_exit(void)
{
__inf("hdmi_module_exit\n");

sunxi_cec_exit();

platform_driver_unregister(&hdmi_driver);
platform_device_unregister(&hdmi_device);

Expand Down
2 changes: 2 additions & 0 deletions drivers/video/sunxi/hdmi/dev_hdmi.h
Expand Up @@ -30,4 +30,6 @@ typedef struct {

extern hdmi_info_t ghdmi;

extern struct class *hdmi_class;

#endif

0 comments on commit 0e1e1d5

Please sign in to comment.