From: Jens Taprogge Date: Tue, 4 Sep 2012 15:01:18 +0000 (+0200) Subject: Staging: ipack/devices/ipoctal: Expose DEVICE_TABLE for ipoctal. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdfc8cf5d28d6ce6fbf795aab456921f4f64d063;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: ipack/devices/ipoctal: Expose DEVICE_TABLE for ipoctal. The modalias entries for the module are now created. Signed-off-by: Jens Taprogge Signed-off-by: Samuel Iglesias Gonsálvez Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/ipack/devices/ipoctal.c b/drivers/staging/ipack/devices/ipoctal.c index 7e1e6f70560d..829b8870a868 100644 --- a/drivers/staging/ipack/devices/ipoctal.c +++ b/drivers/staging/ipack/devices/ipoctal.c @@ -845,6 +845,18 @@ static void ipoctal_remove(struct ipack_device *device) } } +static DEFINE_IPACK_DEVICE_TABLE(ipoctal_ids) = { + { IPACK_DEVICE(IPACK_ID_VERSION_1, IPACK1_VENDOR_ID_SBS, + IPACK1_DEVICE_ID_SBS_OCTAL_232) }, + { IPACK_DEVICE(IPACK_ID_VERSION_1, IPACK1_VENDOR_ID_SBS, + IPACK1_DEVICE_ID_SBS_OCTAL_422) }, + { IPACK_DEVICE(IPACK_ID_VERSION_1, IPACK1_VENDOR_ID_SBS, + IPACK1_DEVICE_ID_SBS_OCTAL_485) }, + { 0, }, +}; + +MODULE_DEVICE_TABLE(ipack, ipoctal_ids); + static const struct ipack_driver_ops ipoctal_drv_ops = { .match = ipoctal_match, .probe = ipoctal_probe, @@ -853,6 +865,7 @@ static const struct ipack_driver_ops ipoctal_drv_ops = { static struct ipack_driver driver = { .ops = &ipoctal_drv_ops, + .id_table = ipoctal_ids, }; static int __init ipoctal_init(void)