hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (c) 2023 Rockchip Electronics Co. Ltd.
 *
 * Author: Shunhua Lan <lsh@rock-chips.com>
 */
#include <linux/fs.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/rk_hdmirx_class.h>
 
static struct class *hdmirx_class;
 
struct class *rk_hdmirx_class(void)
{
   return hdmirx_class;
}
EXPORT_SYMBOL(rk_hdmirx_class);
 
static int __init rk_hdmirx_class_init(void)
{
   hdmirx_class = class_create(THIS_MODULE, "hdmirx");
   if (IS_ERR(hdmirx_class))
       return PTR_ERR(hdmirx_class);
   return 0;
}
subsys_initcall(rk_hdmirx_class_init)
 
static void __exit rk_hdmirx_class_exit(void)
{
   class_destroy(hdmirx_class);
}
module_exit(rk_hdmirx_class_exit);
 
MODULE_DESCRIPTION("Rockchip HDMI Receiver Class Driver");
MODULE_LICENSE("GPL");