aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/mcde/display-fictive.c
blob: 8389357a6932d66a614ddb85c9826e958a97a5b4 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 * Copyright (C) ST-Ericsson SA 2011
 *
 * ST-Ericsson MCDE fictive display driver
 *
 * Author: Per Persson <per.xb.persson@stericsson.com>
 * for ST-Ericsson.
 *
 * License terms: GNU General Public License (GPL), version 2.
 */

#include <linux/kernel.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/err.h>

#include <video/mcde_display.h>

static int __devinit fictive_probe(struct mcde_display_device *dev)
{
	dev->prepare_for_update = NULL;
	dev->platform_enable = NULL,
	dev->platform_disable = NULL,
	dev->set_power_mode = NULL;

	dev_info(&dev->dev, "Fictive display probed\n");

	return 0;
}

static int __devexit fictive_remove(struct mcde_display_device *dev)
{
	return 0;
}

static struct mcde_display_driver fictive_driver = {
	.probe	= fictive_probe,
	.remove = fictive_remove,
	.driver = {
		.name	= "mcde_disp_fictive",
	},
};

/* Module init */
static int __init mcde_display_fictive_init(void)
{
	pr_info("%s\n", __func__);

	return mcde_display_driver_register(&fictive_driver);
}
module_init(mcde_display_fictive_init);

static void __exit mcde_display_fictive_exit(void)
{
	pr_info("%s\n", __func__);

	mcde_display_driver_unregister(&fictive_driver);
}
module_exit(mcde_display_fictive_exit);

MODULE_AUTHOR("Per Persson <per.xb.persson@stericsson.com>");
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("ST-Ericsson MCDE fictive display driver");