提交 a1b53592 编写于 作者: J Javier Martinez Canillas 提交者: Dmitry Torokhov

Input: zet6223 - export OF device ID as module aliases

The I2C core always reports a MODALIAS of the form i2c:<foo> even if the
device was registered via OF, this means that exporting the OF device ID
table device aliases in the module is not needed. But in order to change
how the core reports modaliases to user-space, it's better to export it.

Before this patch:

$ modinfo drivers/input/touchscreen/zet6223.ko | grep alias
alias:          i2c:zet6223

After this patch:

$ modinfo drivers/input/touchscreen/zet6223.ko | grep alias
alias:          of:N*T*Czeitec,zet6223C*
alias:          of:N*T*Czeitec,zet6223
alias:          i2c:zet6223
Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 b0c9d043
...@@ -245,6 +245,7 @@ static const struct of_device_id zet6223_of_match[] = { ...@@ -245,6 +245,7 @@ static const struct of_device_id zet6223_of_match[] = {
{ .compatible = "zeitec,zet6223" }, { .compatible = "zeitec,zet6223" },
{ } { }
}; };
MODULE_DEVICE_TABLE(of, zet6223_of_match);
static const struct i2c_device_id zet6223_id[] = { static const struct i2c_device_id zet6223_id[] = {
{ "zet6223", 0}, { "zet6223", 0},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册