blob: 4e8f42f0efaa2d1da76fd59462b11bff23f55c63 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// SPDX-License-Identifier: GPL-2.0
/*
* Google LWIS SPI Device Driver
*
* Copyright (c) 2023 Google, LLC
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef LWIS_DEVICE_SPI_H_
#define LWIS_DEVICE_SPI_H_
#include <linux/spi/spi.h>
#include <linux/spi/spidev.h>
#include "lwis_device.h"
/*
* struct lwis_spi_device
* "Derived" lwis_device struct, with added SPI related elements.
*/
struct lwis_spi_device {
struct lwis_device base_dev;
struct spi_device *spi;
spinlock_t spi_lock;
};
int lwis_spi_device_init(void);
int lwis_spi_device_deinit(void);
#endif /* LWIS_DEVICE_SPI_H_ */
|