OSDN Git Service

gnss: add receiver type support
authorJohan Hovold <johan@kernel.org>
Fri, 1 Jun 2018 08:22:59 +0000 (10:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 11:32:51 +0000 (20:32 +0900)
commit10f146639fee5ffaf7cf0081c1af518f7d0c533c
tree1fdc31ab3bf22339c89db3b7ba134c6aad9579cf
parentd2efbbd18b1e26ac79401841089e4a4b97d745c3
gnss: add receiver type support

Add a "type" device attribute and a "GNSS_TYPE" uevent variable which
can be used to determine the type of a GNSS receiver. The currently
identified types reflect the protocol(s) supported by a receiver:

"NMEA" NMEA 0183
"SiRF" SiRF Binary
"UBX" UBX

Note that both SiRF and UBX type receivers typically support a subset of
NMEA 0183 with vendor extensions (e.g. to allow switching to the vendor
protocol).

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-class-gnss [new file with mode: 0644]
MAINTAINERS
drivers/gnss/core.c
drivers/gnss/sirf.c
drivers/gnss/ubx.c
include/linux/gnss.h