Skip to content

Commit

Permalink
i2c-gpio: Initialize adapter class
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Atsushi Nemoto authored and Jean Delvare committed Dec 12, 2007
1 parent 45ccc6c commit 50862d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

/*
Expand Down

0 comments on commit 50862d9

Please sign in to comment.