projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45ccc6c
)
i2c-gpio: Initialize adapter class
author
Atsushi Nemoto
<anemo@mba.ocn.ne.jp>
Wed, 12 Dec 2007 12:45:24 +0000
(13:45 +0100)
committer
Jean Delvare
<khali@hyperion.delvare>
Wed, 12 Dec 2007 12:45:24 +0000
(13:45 +0100)
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>
drivers/i2c/busses/i2c-gpio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-gpio.c
b/drivers/i2c/busses/i2c-gpio.c
index 44e1cd21bb0130ae1e4b0251893c451a630c4a6d..3ca19fc234fb45122be765f517288aa419b3d516 100644
(file)
--- a/
drivers/i2c/busses/i2c-gpio.c
+++ b/
drivers/i2c/busses/i2c-gpio.c
@@
-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;
/*