From: Alessandro Zummo Date: Mon, 27 Feb 2006 22:12:58 +0000 (+0100) Subject: [PATCH] I2C: i2c-ixp4xx: Add hwmon class X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7cd30b26eb779b787e00e05f3e9797a97de33968;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] I2C: i2c-ixp4xx: Add hwmon class This patch adds I2C_CLASS_HWMON to the ixp4xx bus driver. Signed-off-by: Alessandro Zummo Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/i2c/busses/i2c-ixp4xx.c b/drivers/i2c/busses/i2c-ixp4xx.c index e422d8b2d4d6..2ed07112d683 100644 --- a/drivers/i2c/busses/i2c-ixp4xx.c +++ b/drivers/i2c/busses/i2c-ixp4xx.c @@ -126,6 +126,7 @@ static int ixp4xx_i2c_probe(struct platform_device *plat_dev) drv_data->algo_data.timeout = 100; drv_data->adapter.id = I2C_HW_B_IXP4XX; + drv_data->adapter.class = I2C_CLASS_HWMON; strlcpy(drv_data->adapter.name, plat_dev->dev.driver->name, I2C_NAME_SIZE); drv_data->adapter.algo_data = &drv_data->algo_data;