mirror of
https://github.com/tbsdtv/media_build.git
synced 2025-07-23 04:13:02 +02:00
Update backport patches for kernels <6.0
This commit is contained in:
@@ -483,6 +483,27 @@ index c28fee7509cd..1eb371b79e36 100644
|
||||
}
|
||||
|
||||
static const struct i2c_device_id ts2020_id_table[] = {
|
||||
diff --git a/drivers/media/i2c/adv748x/adv748x-core.c b/drivers/media/i2c/adv748x/adv748x-core.c
|
||||
index 3eb6d5e8f082..301b8d1cf36b 100644
|
||||
--- a/drivers/media/i2c/adv748x/adv748x-core.c
|
||||
+++ b/drivers/media/i2c/adv748x/adv748x-core.c
|
||||
@@ -815,7 +815,7 @@ static int adv748x_probe(struct i2c_client *client)
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static void adv748x_remove(struct i2c_client *client)
|
||||
+static int adv748x_remove(struct i2c_client *client)
|
||||
{
|
||||
struct adv748x_state *state = i2c_get_clientdata(client);
|
||||
|
||||
@@ -828,6 +828,7 @@ static void adv748x_remove(struct i2c_client *client)
|
||||
adv748x_unregister_clients(state);
|
||||
adv748x_dt_cleanup(state);
|
||||
mutex_destroy(&state->mutex);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
static const struct of_device_id adv748x_of_table[] = {
|
||||
diff --git a/drivers/media/i2c/ad5820.c b/drivers/media/i2c/ad5820.c
|
||||
index 44c26af49071..16ba18f85d2d 100644
|
||||
--- a/drivers/media/i2c/ad5820.c
|
||||
@@ -1299,6 +1320,48 @@ index 25d4dbb6041e..a2b1e5ac3b10 100644
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops imx355_pm_ops = {
|
||||
diff --git a/drivers/media/i2c/imx412.c b/drivers/media/i2c/imx412.c
|
||||
index c7e862ae4040..a938435de9bd 100644
|
||||
--- a/drivers/media/i2c/imx412.c
|
||||
+++ b/drivers/media/i2c/imx412.c
|
||||
@@ -1263,7 +1263,7 @@ static int imx412_probe(struct i2c_client *client)
|
||||
*
|
||||
* Return: 0 if successful, error code otherwise.
|
||||
*/
|
||||
-static void imx412_remove(struct i2c_client *client)
|
||||
+static int imx412_remove(struct i2c_client *client)
|
||||
{
|
||||
struct v4l2_subdev *sd = i2c_get_clientdata(client);
|
||||
struct imx412 *imx412 = to_imx412(sd);
|
||||
@@ -1278,6 +1278,7 @@ static void imx412_remove(struct i2c_client *client)
|
||||
pm_runtime_set_suspended(&client->dev);
|
||||
|
||||
mutex_destroy(&imx412->mutex);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops imx412_pm_ops = {
|
||||
diff --git a/drivers/media/i2c/imx415.c b/drivers/media/i2c/imx415.c
|
||||
index 4b5d1ee9cc6b..865cd6592a45 100644
|
||||
--- a/drivers/media/i2c/imx415.c
|
||||
+++ b/drivers/media/i2c/imx415.c
|
||||
@@ -1233,7 +1233,7 @@ static int imx415_probe(struct i2c_client *client)
|
||||
return ret;
|
||||
}
|
||||
|
||||
-static void imx415_remove(struct i2c_client *client)
|
||||
+static int imx415_remove(struct i2c_client *client)
|
||||
{
|
||||
struct v4l2_subdev *subdev = i2c_get_clientdata(client);
|
||||
struct imx415 *sensor = to_imx415(subdev);
|
||||
@@ -1250,6 +1250,7 @@ static void imx415_remove(struct i2c_client *client)
|
||||
if (!pm_runtime_status_suspended(sensor->dev))
|
||||
imx415_power_off(sensor);
|
||||
pm_runtime_set_suspended(sensor->dev);
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
static int imx415_runtime_resume(struct device *dev)
|
||||
diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c
|
||||
index 51921068931d..580eba23fa97 100644
|
||||
--- a/drivers/media/i2c/ir-kbd-i2c.c
|
||||
|
Reference in New Issue
Block a user