]> git.baikalelectronics.ru Git - kernel.git/commit
Input: zet6223 - export OF device ID as module aliases
authorJavier Martinez Canillas <javier@osg.samsung.com>
Mon, 20 Feb 2017 23:06:39 +0000 (15:06 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 20 Feb 2017 23:12:26 +0000 (15:12 -0800)
commit0e2bb3063880f96c9eb7d77ab7cef6cd0ba97ac9
tree633c1b4ec6dda100319609ac17cd7f07b8426e86
parent32696f5541b2e8d24cc9783595ca2a99a8d1b01e
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: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zet6223.c