From: Javier Martinez Canillas Date: Mon, 20 Feb 2017 23:06:39 +0000 (-0800) Subject: Input: zet6223 - export OF device ID as module aliases X-Git-Tag: v4.14-rc1~4^2~54^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a1b5359271e5c77d5ec8a575b379a6ba3e867097;p=platform%2Fkernel%2Flinux-rpi3.git Input: zet6223 - export OF device ID as module aliases The I2C core always reports a MODALIAS of the form i2c: 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 Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/zet6223.c b/drivers/input/touchscreen/zet6223.c index e7fb00b..19ffcc7 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},