spi.c (f01387d2693813eb5271a3448e6a082322c7d75d) spi.c (fcd9d046fd8998cc984f2ff80e76f246ebca15b6)
1/*
2 * Copyright (C) 2013 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

--- 4 unchanged lines hidden (view full) ---

13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
16 *
17 */
18
19#define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__
20
1/*
2 * Copyright (C) 2013 Intel Corporation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License,
6 * version 2, as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope it will be useful, but WITHOUT

--- 4 unchanged lines hidden (view full) ---

13 * You should have received a copy of the GNU General Public License along with
14 * this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
16 *
17 */
18
19#define pr_fmt(fmt) "nci_spi: %s: " fmt, __func__
20
21#include <linux/module.h>
22
21#include <linux/export.h>
22#include <linux/spi/spi.h>
23#include <linux/crc-ccitt.h>
24#include <net/nfc/nci_core.h>
25
26#define NCI_SPI_ACK_SHIFT 6
27#define NCI_SPI_MSB_PAYLOAD_MASK 0x3F
28

--- 286 unchanged lines hidden (view full) ---

315 if (nspi->acknowledge_mode == NCI_SPI_CRC_ENABLED)
316 send_acknowledge(nspi, ACKNOWLEDGE_ACK);
317
318done:
319
320 return skb;
321}
322EXPORT_SYMBOL_GPL(nci_spi_read);
23#include <linux/export.h>
24#include <linux/spi/spi.h>
25#include <linux/crc-ccitt.h>
26#include <net/nfc/nci_core.h>
27
28#define NCI_SPI_ACK_SHIFT 6
29#define NCI_SPI_MSB_PAYLOAD_MASK 0x3F
30

--- 286 unchanged lines hidden (view full) ---

317 if (nspi->acknowledge_mode == NCI_SPI_CRC_ENABLED)
318 send_acknowledge(nspi, ACKNOWLEDGE_ACK);
319
320done:
321
322 return skb;
323}
324EXPORT_SYMBOL_GPL(nci_spi_read);
325
326MODULE_LICENSE("GPL");