gnss: sirf: write data to gnss only when the gnss device is open
authorAndreas Kemnade <andreas@kemnade.info>
Thu, 24 Jan 2019 06:34:35 +0000 (07:34 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 25 Jan 2019 10:35:06 +0000 (11:35 +0100)
commit196d91846099fb49b45fb14b0f47b9af3b721b94
tree3f473500807d4b8657dd4d782e9033307c1bc092
parent9f1623fdb399e5cf677f042e3bff3beec70376f6
gnss: sirf: write data to gnss only when the gnss device is open

The api forbids writing data there otherwise. Prepare for the
serdev_open()/close() being a part of sirf_set_active.

Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/gnss/sirf.c