// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2012-2015 Synaptics Incorporated * Copyright (C) 2016 Zodiac Inflight Innovations */ #include <linux/bitops.h> #include <linux/kernel.h> #include <linux/rmi.h> #include <linux/slab.h> #include "rmi_driver.h" #define F55_NAME … /* F55 data offsets */ #define F55_NUM_RX_OFFSET … #define F55_NUM_TX_OFFSET … #define F55_PHYS_CHAR_OFFSET … /* Only read required query registers */ #define F55_QUERY_LEN … /* F55 capabilities */ #define F55_CAP_SENSOR_ASSIGN … struct f55_data { … }; static int rmi_f55_detect(struct rmi_function *fn) { … } static int rmi_f55_probe(struct rmi_function *fn) { … } struct rmi_function_handler rmi_f55_handler = …;