Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
exynos_hdmiphy.c
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2011 Samsung Electronics Co.Ltd
3  * Authors:
4  * Seung-Woo Kim <[email protected]>
5  * Inki Dae <[email protected]>
6  *
7  * This program is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU General Public License as published by the
9  * Free Software Foundation; either version 2 of the License, or (at your
10  * option) any later version.
11  *
12  */
13 
14 #include <drm/drmP.h>
15 
16 #include <linux/kernel.h>
17 #include <linux/i2c.h>
18 #include <linux/module.h>
19 
20 #include "exynos_drm_drv.h"
21 #include "exynos_hdmi.h"
22 
23 
24 static int hdmiphy_probe(struct i2c_client *client,
25  const struct i2c_device_id *id)
26 {
28 
29  dev_info(&client->adapter->dev, "attached s5p_hdmiphy "
30  "into i2c adapter successfully\n");
31 
32  return 0;
33 }
34 
35 static int hdmiphy_remove(struct i2c_client *client)
36 {
37  dev_info(&client->adapter->dev, "detached s5p_hdmiphy "
38  "from i2c adapter successfully\n");
39 
40  return 0;
41 }
42 
43 static const struct i2c_device_id hdmiphy_id[] = {
44  { "s5p_hdmiphy", 0 },
45  { "exynos5-hdmiphy", 0 },
46  { },
47 };
48 
49 static struct of_device_id hdmiphy_match_types[] = {
50  {
51  .compatible = "samsung,exynos5-hdmiphy",
52  }, {
53  /* end node */
54  }
55 };
56 
58  .driver = {
59  .name = "exynos-hdmiphy",
60  .owner = THIS_MODULE,
61  .of_match_table = hdmiphy_match_types,
62  },
63  .id_table = hdmiphy_id,
64  .probe = hdmiphy_probe,
65  .remove = __devexit_p(hdmiphy_remove),
66  .command = NULL,
67 };
68 EXPORT_SYMBOL(hdmiphy_driver);