Skip to contentSkip to conversation

media: exynos4-is: fimc-is-i2c: remove I2C_CLASS_SPD support

PATCH In review Heiner Kallweit 2 participants 3 messages Nov 8, 2023 – Nov 23, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: exynos4-is: fimc-is-i2c: remove I2C_CLASS_SPD support

This I2C bus is used by the firmware only and it seems I2C_CLASS_SPD device auto-detection has never been used. So we can safely remove it. That's one further step towards removing I2C_CLASS_SPD completely.

---
 drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c +0 -1
index bef6e9b4a..44363c424 100644
@@ -57,7 +57,6 @@ static int fimc_is_i2c_probe(struct platform_device *pdev)
 	strscpy(i2c_adap->name, "exynos4x12-isp-i2c", sizeof(i2c_adap->name));
 	i2c_adap->owner = THIS_MODULE;
 	i2c_adap->algo = &fimc_is_i2c_algorithm;
-	i2c_adap->class = I2C_CLASS_SPD;
 
 	platform_set_drvdata(pdev, isp_i2c);
 	pm_runtime_enable(&pdev->dev);
Signature · 1 line
2.42.1
#1 lore raw
Quoted 5 lines · Heiner Kallweit

This I2C bus is used by the firmware only and it seems I2C_CLASS_SPD device auto-detection has never been used. So we can safely remove it. That's one further step towards removing I2C_CLASS_SPD completely.

As I want to apply this cleanup early in the cycle, could we have an ack for me to modify this subsystem via I2C, please?

Quoted 16 lines
---
 drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c +0 -1
index bef6e9b4a..44363c424 100644
@@ -57,7 +57,6 @@ static int fimc_is_i2c_probe(struct platform_device *pdev)
 	strscpy(i2c_adap->name, "exynos4x12-isp-i2c", sizeof(i2c_adap->name));
 	i2c_adap->owner = THIS_MODULE;
 	i2c_adap->algo = &fimc_is_i2c_algorithm;
-	i2c_adap->class = I2C_CLASS_SPD;
 
 	platform_set_drvdata(pdev, isp_i2c);
 	pm_runtime_enable(&pdev->dev);
#2 lore raw
Quoted 10 lines · Wolfram Sang
Quoted 5 lines · Heiner Kallweit

This I2C bus is used by the firmware only and it seems I2C_CLASS_SPD device auto-detection has never been used. So we can safely remove it. That's one further step towards removing I2C_CLASS_SPD completely.

As I want to apply this cleanup early in the cycle, could we have an ack for me to modify this subsystem via I2C, please?

Today I received the following, patch has been applied via the linux-media tree already.

[git:media_stage/master] media: exynos4-is: fimc-is-i2c: remove I2C_CLASS_SPD support

This is an automatic generated email to let you know that the following patch were queued:

Subject: media: exynos4-is: fimc-is-i2c: remove I2C_CLASS_SPD support
Author:  Heiner Kallweit <[email protected]>
Date:    Wed Nov 8 07:42:37 2023 +0100

This I2C bus is used by the firmware only and it seems I2C_CLASS_SPD device auto-detection has never been used. So we can safely remove it. That's one further step towards removing I2C_CLASS_SPD completely.

Quoted 16 lines
Quoted 16 lines
---
 drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c | 1 -
 1 file changed, 1 deletion(-)
drivers/media/platform/samsung/exynos4-is/fimc-is-i2c.c +0 -1
index bef6e9b4a..44363c424 100644
@@ -57,7 +57,6 @@ static int fimc_is_i2c_probe(struct platform_device *pdev)
 	strscpy(i2c_adap->name, "exynos4x12-isp-i2c", sizeof(i2c_adap->name));
 	i2c_adap->owner = THIS_MODULE;
 	i2c_adap->algo = &fimc_is_i2c_algorithm;
-	i2c_adap->class = I2C_CLASS_SPD;
 
 	platform_set_drvdata(pdev, isp_i2c);
 	pm_runtime_enable(&pdev->dev);