This flag should be set on devices that support multiple USB profiles
and will be used to determine whether or not querying USB profiles is
appropriate/necessary.
---
drivers/ubloxmodem/ubloxmodem.c | 10 +++++-----
drivers/ubloxmodem/ubloxmodem.h | 1 +
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/drivers/ubloxmodem/ubloxmodem.c b/drivers/ubloxmodem/ubloxmodem.c
index 682b7cea..3998f55e 100644
--- a/drivers/ubloxmodem/ubloxmodem.c
+++ b/drivers/ubloxmodem/ubloxmodem.c
@@ -40,23 +40,23 @@ const struct ublox_model ublox_models[] = {
/* TOBY L2 series */
{
.name = "TOBY-L200",
- .flags = UBLOX_F_TOBY_L2,
+ .flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
},
{
.name = "TOBY-L201",
- .flags = UBLOX_F_TOBY_L2,
+ .flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
},
{
.name = "TOBY-L210",
- .flags = UBLOX_F_TOBY_L2,
+ .flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
},
{
.name = "TOBY-L220",
- .flags = UBLOX_F_TOBY_L2,
+ .flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
},
{
.name = "TOBY-L280",
- .flags = UBLOX_F_TOBY_L2,
+ .flags = UBLOX_F_TOBY_L2|UBLOX_F_HAVE_USBCONF,
},
{ /* sentinal */ },
};
diff --git a/drivers/ubloxmodem/ubloxmodem.h b/drivers/ubloxmodem/ubloxmodem.h
index e8f98b40..90749bff 100644
--- a/drivers/ubloxmodem/ubloxmodem.h
+++ b/drivers/ubloxmodem/ubloxmodem.h
@@ -25,6 +25,7 @@
enum ublox_flags {
UBLOX_F_TOBY_L2 = (1 << 0),
+ UBLOX_F_HAVE_USBCONF = (1 << 2),
};
struct ublox_model {
--
2.19.1