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

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

1149 ov2740->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1150 ov2740->pad.flags = MEDIA_PAD_FL_SOURCE;
1151 ret = media_entity_pads_init(&ov2740->sd.entity, 1, &ov2740->pad);
1152 if (ret) {
1153 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1154 goto probe_error_v4l2_ctrl_handler_free;
1155 }
1156
1// SPDX-License-Identifier: GPL-2.0
2// Copyright (c) 2020 Intel Corporation.
3
4#include <asm/unaligned.h>
5#include <linux/acpi.h>
6#include <linux/delay.h>
7#include <linux/i2c.h>
8#include <linux/module.h>

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

1149 ov2740->sd.entity.function = MEDIA_ENT_F_CAM_SENSOR;
1150 ov2740->pad.flags = MEDIA_PAD_FL_SOURCE;
1151 ret = media_entity_pads_init(&ov2740->sd.entity, 1, &ov2740->pad);
1152 if (ret) {
1153 dev_err(&client->dev, "failed to init entity pads: %d", ret);
1154 goto probe_error_v4l2_ctrl_handler_free;
1155 }
1156
1157 ret = v4l2_async_register_subdev_sensor_common(&ov2740->sd);
1157 ret = v4l2_async_register_subdev_sensor(&ov2740->sd);
1158 if (ret < 0) {
1159 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1160 ret);
1161 goto probe_error_media_entity_cleanup;
1162 }
1163
1164 ret = ov2740_register_nvmem(client, ov2740);
1165 if (ret)

--- 50 unchanged lines hidden ---
1158 if (ret < 0) {
1159 dev_err(&client->dev, "failed to register V4L2 subdev: %d",
1160 ret);
1161 goto probe_error_media_entity_cleanup;
1162 }
1163
1164 ret = ov2740_register_nvmem(client, ov2740);
1165 if (ret)

--- 50 unchanged lines hidden ---