exynos_hdmiphy.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*
  2. * Copyright (C) 2011 Samsung Electronics Co.Ltd
  3. * Authors:
  4. * Seung-Woo Kim <sw0312.kim@samsung.com>
  5. * Inki Dae <inki.dae@samsung.com>
  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. #include "drmP.h"
  14. #include <linux/kernel.h>
  15. #include <linux/i2c.h>
  16. #include <linux/module.h>
  17. #include "exynos_drm_drv.h"
  18. #include "exynos_hdmi.h"
  19. static int hdmiphy_probe(struct i2c_client *client,
  20. const struct i2c_device_id *id)
  21. {
  22. hdmi_attach_hdmiphy_client(client);
  23. dev_info(&client->adapter->dev, "attached s5p_hdmiphy "
  24. "into i2c adapter successfully\n");
  25. return 0;
  26. }
  27. static int hdmiphy_remove(struct i2c_client *client)
  28. {
  29. dev_info(&client->adapter->dev, "detached s5p_hdmiphy "
  30. "from i2c adapter successfully\n");
  31. return 0;
  32. }
  33. static const struct i2c_device_id hdmiphy_id[] = {
  34. { "s5p_hdmiphy", 0 },
  35. { },
  36. };
  37. struct i2c_driver hdmiphy_driver = {
  38. .driver = {
  39. .name = "s5p-hdmiphy",
  40. .owner = THIS_MODULE,
  41. },
  42. .id_table = hdmiphy_id,
  43. .probe = hdmiphy_probe,
  44. .remove = __devexit_p(hdmiphy_remove),
  45. .command = NULL,
  46. };
  47. EXPORT_SYMBOL(hdmiphy_driver);