imx355.c (cdd38c5f1ce4398ec58fec95904b75824daab7b5) imx355.c (15786f7b564eff32d8dae73d40d77dc4e3c7298f)
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (C) 2018 Intel Corporation
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/i2c.h>
7#include <linux/module.h>
8#include <linux/pm_runtime.h>

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

1781 /* Initialize source pad */
1782 imx355->pad.flags = MEDIA_PAD_FL_SOURCE;
1783 ret = media_entity_pads_init(&imx355->sd.entity, 1, &imx355->pad);
1784 if (ret) {
1785 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1786 goto error_handler_free;
1787 }
1788
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (C) 2018 Intel Corporation
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/i2c.h>
7#include <linux/module.h>
8#include <linux/pm_runtime.h>

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

1781 /* Initialize source pad */
1782 imx355->pad.flags = MEDIA_PAD_FL_SOURCE;
1783 ret = media_entity_pads_init(&imx355->sd.entity, 1, &imx355->pad);
1784 if (ret) {
1785 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1786 goto error_handler_free;
1787 }
1788
1789 ret = v4l2_async_register_subdev_sensor_common(&imx355->sd);
1789 ret = v4l2_async_register_subdev_sensor(&imx355->sd);
1790 if (ret < 0)
1791 goto error_media_entity;
1792
1793 /*
1794 * Device is already turned on by i2c-core with ACPI domain PM.
1795 * Enable runtime PM and turn off the device.
1796 */
1797 pm_runtime_set_active(&client->dev);

--- 61 unchanged lines hidden ---
1790 if (ret < 0)
1791 goto error_media_entity;
1792
1793 /*
1794 * Device is already turned on by i2c-core with ACPI domain PM.
1795 * Enable runtime PM and turn off the device.
1796 */
1797 pm_runtime_set_active(&client->dev);

--- 61 unchanged lines hidden ---