summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2017-02-20 15:06:39 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-20 15:12:26 -0800
commita1b5359271e5c77d5ec8a575b379a6ba3e867097 (patch)
tree633c1b4ec6dda100319609ac17cd7f07b8426e86
parentb0c9d043d4ae95d898aa79b2d89226262de471fd (diff)
downloadlinux-a1b5359271e5c77d5ec8a575b379a6ba3e867097.tar.bz2
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>
-rw-r--r--drivers/input/touchscreen/zet6223.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/zet6223.c b/drivers/input/touchscreen/zet6223.c
index e7fb00b511ec..19ffcc7b886c 100644
--- a/drivers/input/touchscreen/zet6223.c
+++ b/drivers/input/touchscreen/zet6223.c
@@ -245,6 +245,7 @@ static const struct of_device_id zet6223_of_match[] = {
{ .compatible = "zeitec,zet6223" },
{ }
};
+MODULE_DEVICE_TABLE(of, zet6223_of_match);
static const struct i2c_device_id zet6223_id[] = {
{ "zet6223", 0},