// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause /* * Copyright (c) 2011, 2012, Qualcomm Atheros Communications Inc. * Copyright (c) 2014, I2SE GmbH */ /* This module implements the Qualcomm Atheros SPI protocol for * kernel-based SPI device. */ #include <linux/kernel.h> #include <linux/netdevice.h> #include <linux/spi/spi.h> #include "qca_7k.h" void qcaspi_spi_error(struct qcaspi *qca) { … } int qcaspi_read_register(struct qcaspi *qca, u16 reg, u16 *result) { … } static int __qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value) { … } int qcaspi_write_register(struct qcaspi *qca, u16 reg, u16 value, int retry) { … }