ov13858.c (29583dfcd2dd72c766422bd05c16f06c6b1fb356) ov13858.c (2ab6e40840b66c1dd360ea71bc2d46cd423cae10)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2017 Intel Corporation.
3
4#include <linux/acpi.h>
5#include <linux/i2c.h>
6#include <linux/module.h>
7#include <linux/pm_runtime.h>
8#include <media/v4l2-ctrls.h>

--- 1684 unchanged lines hidden (view full) ---

1693}
1694
1695static void ov13858_free_controls(struct ov13858 *ov13858)
1696{
1697 v4l2_ctrl_handler_free(ov13858->sd.ctrl_handler);
1698 mutex_destroy(&ov13858->mutex);
1699}
1700
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2017 Intel Corporation.
3
4#include <linux/acpi.h>
5#include <linux/i2c.h>
6#include <linux/module.h>
7#include <linux/pm_runtime.h>
8#include <media/v4l2-ctrls.h>

--- 1684 unchanged lines hidden (view full) ---

1693}
1694
1695static void ov13858_free_controls(struct ov13858 *ov13858)
1696{
1697 v4l2_ctrl_handler_free(ov13858->sd.ctrl_handler);
1698 mutex_destroy(&ov13858->mutex);
1699}
1700
1701static int ov13858_probe(struct i2c_client *client,
1702 const struct i2c_device_id *devid)
1701static int ov13858_probe(struct i2c_client *client)
1703{
1704 struct ov13858 *ov13858;
1705 int ret;
1706 u32 val = 0;
1707
1708 device_property_read_u32(&client->dev, "clock-frequency", &val);
1709 if (val != 19200000)
1710 return -EINVAL;

--- 91 unchanged lines hidden (view full) ---

1802#endif
1803
1804static struct i2c_driver ov13858_i2c_driver = {
1805 .driver = {
1806 .name = "ov13858",
1807 .pm = &ov13858_pm_ops,
1808 .acpi_match_table = ACPI_PTR(ov13858_acpi_ids),
1809 },
1702{
1703 struct ov13858 *ov13858;
1704 int ret;
1705 u32 val = 0;
1706
1707 device_property_read_u32(&client->dev, "clock-frequency", &val);
1708 if (val != 19200000)
1709 return -EINVAL;

--- 91 unchanged lines hidden (view full) ---

1801#endif
1802
1803static struct i2c_driver ov13858_i2c_driver = {
1804 .driver = {
1805 .name = "ov13858",
1806 .pm = &ov13858_pm_ops,
1807 .acpi_match_table = ACPI_PTR(ov13858_acpi_ids),
1808 },
1810 .probe = ov13858_probe,
1809 .probe_new = ov13858_probe,
1811 .remove = ov13858_remove,
1812 .id_table = ov13858_id_table,
1813};
1814
1815module_i2c_driver(ov13858_i2c_driver);
1816
1817MODULE_AUTHOR("Kan, Chris <chris.kan@intel.com>");
1818MODULE_AUTHOR("Rapolu, Chiranjeevi <chiranjeevi.rapolu@intel.com>");
1819MODULE_AUTHOR("Yang, Hyungwoo");
1820MODULE_DESCRIPTION("Omnivision ov13858 sensor driver");
1821MODULE_LICENSE("GPL v2");
1810 .remove = ov13858_remove,
1811 .id_table = ov13858_id_table,
1812};
1813
1814module_i2c_driver(ov13858_i2c_driver);
1815
1816MODULE_AUTHOR("Kan, Chris <chris.kan@intel.com>");
1817MODULE_AUTHOR("Rapolu, Chiranjeevi <chiranjeevi.rapolu@intel.com>");
1818MODULE_AUTHOR("Yang, Hyungwoo");
1819MODULE_DESCRIPTION("Omnivision ov13858 sensor driver");
1820MODULE_LICENSE("GPL v2");