#include <linux/errno.h>
#include <linux/gnss.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/regulator/consumer.h>
#include <linux/serdev.h>
#include "serial.h"
struct mtk_data { … };
static int mtk_set_active(struct gnss_serial *gserial)
{ … }
static int mtk_set_standby(struct gnss_serial *gserial)
{ … }
static int mtk_set_power(struct gnss_serial *gserial,
enum gnss_serial_pm_state state)
{ … }
static const struct gnss_serial_ops mtk_gserial_ops = …;
static int mtk_probe(struct serdev_device *serdev)
{ … }
static void mtk_remove(struct serdev_device *serdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id mtk_of_match[] = …;
MODULE_DEVICE_TABLE(of, mtk_of_match);
#endif
static struct serdev_device_driver mtk_driver = …;
module_serdev_device_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;