mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 09:50:04 +00:00
i2c-gpio: Initialize adapter class
This is required to let hwmon drivers attach to the adapter. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
45ccc6c50d
commit
50862d9490
1 changed files with 1 additions and 0 deletions
|
@ -140,6 +140,7 @@ static int __init i2c_gpio_probe(struct platform_device *pdev)
|
|||
adap->owner = THIS_MODULE;
|
||||
snprintf(adap->name, sizeof(adap->name), "i2c-gpio%d", pdev->id);
|
||||
adap->algo_data = bit_data;
|
||||
adap->class = I2C_CLASS_HWMON;
|
||||
adap->dev.parent = &pdev->dev;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue