提交 dc5f4f5e 编写于 作者: M Michael Hennerich 提交者: Dmitry Torokhov

Input: ad714x - fix up input configuration

Add missing input name and set up parent devices so input devices will
show in proper places in sysfs tree.
Signed-off-by: NMichael Hennerich <michael.hennerich@analog.com>
Tested-by: NJean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 9cb6cfae
...@@ -1149,6 +1149,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq, ...@@ -1149,6 +1149,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
input[alloc_idx]->id.bustype = bus_type; input[alloc_idx]->id.bustype = bus_type;
input[alloc_idx]->id.product = ad714x->product; input[alloc_idx]->id.product = ad714x->product;
input[alloc_idx]->id.version = ad714x->version; input[alloc_idx]->id.version = ad714x->version;
input[alloc_idx]->name = "ad714x_captouch_slider";
input[alloc_idx]->dev.parent = dev;
error = input_register_device(input[alloc_idx]); error = input_register_device(input[alloc_idx]);
if (error) if (error)
...@@ -1179,6 +1181,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq, ...@@ -1179,6 +1181,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
input[alloc_idx]->id.bustype = bus_type; input[alloc_idx]->id.bustype = bus_type;
input[alloc_idx]->id.product = ad714x->product; input[alloc_idx]->id.product = ad714x->product;
input[alloc_idx]->id.version = ad714x->version; input[alloc_idx]->id.version = ad714x->version;
input[alloc_idx]->name = "ad714x_captouch_wheel";
input[alloc_idx]->dev.parent = dev;
error = input_register_device(input[alloc_idx]); error = input_register_device(input[alloc_idx]);
if (error) if (error)
...@@ -1212,6 +1216,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq, ...@@ -1212,6 +1216,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
input[alloc_idx]->id.bustype = bus_type; input[alloc_idx]->id.bustype = bus_type;
input[alloc_idx]->id.product = ad714x->product; input[alloc_idx]->id.product = ad714x->product;
input[alloc_idx]->id.version = ad714x->version; input[alloc_idx]->id.version = ad714x->version;
input[alloc_idx]->name = "ad714x_captouch_pad";
input[alloc_idx]->dev.parent = dev;
error = input_register_device(input[alloc_idx]); error = input_register_device(input[alloc_idx]);
if (error) if (error)
...@@ -1240,6 +1246,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq, ...@@ -1240,6 +1246,8 @@ struct ad714x_chip *ad714x_probe(struct device *dev, u16 bus_type, int irq,
input[alloc_idx]->id.bustype = bus_type; input[alloc_idx]->id.bustype = bus_type;
input[alloc_idx]->id.product = ad714x->product; input[alloc_idx]->id.product = ad714x->product;
input[alloc_idx]->id.version = ad714x->version; input[alloc_idx]->id.version = ad714x->version;
input[alloc_idx]->name = "ad714x_captouch_button";
input[alloc_idx]->dev.parent = dev;
error = input_register_device(input[alloc_idx]); error = input_register_device(input[alloc_idx]);
if (error) if (error)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册