[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201026175718.965773-5-vaishnav@beagleboard.org>
Date: Mon, 26 Oct 2020 23:27:17 +0530
From: Vaishnav M A <vaishnav@...gleboard.org>
To: johan@...nel.org
Cc: ribalda@...nel.org, robh@...nel.org, gregkh@...uxfoundation.org,
jirislaby@...nel.org, masahiroy@...nel.org,
andriy.shevchenko@...ux.intel.com, linux-kernel@...r.kernel.org,
linux-serial@...r.kernel.org, linux-kbuild@...r.kernel.org,
jkridner@...gleboard.org, drew@...gleboard.org,
robertcnelson@...gleboard.org, vaishnav@...gleboard.org
Subject: [RFC PATCH 4/5] gnss: ubx add MODULE_DEVICE_TABLE(serdev)
export serdev id table to the module header.
Signed-off-by: Vaishnav M A <vaishnav@...gleboard.org>
---
drivers/gnss/ubx.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/gnss/ubx.c b/drivers/gnss/ubx.c
index 7b05bc40532e..e50056cc4223 100644
--- a/drivers/gnss/ubx.c
+++ b/drivers/gnss/ubx.c
@@ -138,6 +138,14 @@ static const struct of_device_id ubx_of_match[] = {
MODULE_DEVICE_TABLE(of, ubx_of_match);
#endif
+static const struct serdev_device_id ubx_serdev_id[] = {
+ { "neo-6m", },
+ { "neo-8", },
+ { "neo-m8", },
+ {}
+};
+MODULE_DEVICE_TABLE(serdev, ubx_serdev_id);
+
static struct serdev_device_driver ubx_driver = {
.driver = {
.name = "gnss-ubx",
@@ -146,6 +154,7 @@ static struct serdev_device_driver ubx_driver = {
},
.probe = ubx_probe,
.remove = ubx_remove,
+ .id_table = ubx_serdev_id,
};
module_serdev_device_driver(ubx_driver);
--
2.25.1
Powered by blists - more mailing lists