Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: olpc_dcon: Remove I2C_CLASS_DDC support

olpc_dcon is the only remaining i2c client device driver declaring
I2C_CLASS_DDC support after the legacy eeprom driver has been removed.

olpc_dcon is only used on olpc devices, connected to an i2c adapter
driven by scx200_acb. This adapter driver declares support for
I2C_CLASS_HWMON and I2C_CLASS_SPD. Therefore we can safely drop
I2C_CLASS_DDC support in olpc_dcon.

That's the last step before I2C_CLASS_DDC can be removed in general.

This patch is solely based on documentation, and I don't have an olpc
device for testing. Therefore some testing would be appreciated before
patch is applied.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/da3070d9-e016-4167-843f-a08d5b2dc1fe@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Heiner Kallweit and committed by
Greg Kroah-Hartman
0210a684 3d69b023

+1 -1
+1 -1
drivers/staging/olpc_dcon/olpc_dcon.c
··· 777 777 .name = "olpc_dcon", 778 778 .pm = &dcon_pm_ops, 779 779 }, 780 - .class = I2C_CLASS_DDC | I2C_CLASS_HWMON, 780 + .class = I2C_CLASS_HWMON, 781 781 .id_table = dcon_idtable, 782 782 .probe = dcon_probe, 783 783 .remove = dcon_remove,