Thread (20 messages) 20 messages, 2 authors, 2018-06-04

[PATCH 8/8] media: uniphier: add LD20 adapter driver for ISDB

From: Masahiro Yamada <hidden>
Date: 2018-06-02 12:04:33
Also in: linux-media, lkml

2018-05-30 18:09 GMT+09:00 Katsuhiro Suzuki [off-list ref]:
This patch adds UniPhier LD20 DVB adapter driver for ISDB-S/T
that equipments SONY SUT-PJ series using CXD2858 tuner and Socionext
MN884434 demodulator.

Signed-off-by: Katsuhiro Suzuki <redacted>
---
 drivers/media/platform/uniphier/Kconfig       |  10 +
 drivers/media/platform/uniphier/Makefile      |   1 +
 .../platform/uniphier/ld20-mn884434-helene.c  | 274 ++++++++++++++++++
 3 files changed, 285 insertions(+)
 create mode 100644 drivers/media/platform/uniphier/ld20-mn884434-helene.c
+
+static const struct of_device_id uniphier_hsc_adapter_of_match[] = {
+       {
+               .compatible = "socionext,uniphier-ld20-mn884434-helene",
+               .data = &ld20_mn884434_helene_spec,
+       },
+       {},
+};
+MODULE_DEVICE_TABLE(of, uniphier_hsc_adapter_of_match);
+
+static struct platform_driver uniphier_hsc_adapter_driver = {
+       .driver = {
+               .name = "uniphier-ld20-isdb",
+               .of_match_table = of_match_ptr(uniphier_hsc_adapter_of_match),
+       },
+       .probe  = uniphier_adapter_probe,
+       .remove = uniphier_adapter_remove,
+};
+module_platform_driver(uniphier_hsc_adapter_driver);
+
+MODULE_AUTHOR("Katsuhiro Suzuki [off-list ref]");
+MODULE_DESCRIPTION("UniPhier LD20 adapter driver for ISDB.");
+MODULE_LICENSE("GPL v2");

This is weird.
From drivers/media/platform/uniphier/Makefile,
obviously you link all the objects into the single module, uniphier-dvb.ko


It contains zero, one, or two sets of MODULE_* depending on CONFIG options.


 - Zero MODULE_LICENSE / MODULE_AUTHOR / MODULE_DESCRIPTION
   if CONFIG_DVB_UNIPHIER_LD11_ISDB=n &&
      CONFIG_DVB_UNIPHIER_LD20_ISDB=n


 - Two sets of MODULE_LICENSE / MODULE_AUTHOR / MODULE_DESCRIPTION
   if CONFIG_DVB_UNIPHIER_LD11_ISDB=y &&
      CONFIG_DVB_UNIPHIER_LD20_ISDB=y



What you can do is:

 - Split the module into core, ld11, ld20

    or

 - Move the module tags and entry to hsc-core.c
   and leave only the data arrays in ld11, ld20.






-- 
Best Regards
Masahiro Yamada
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help