mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			
		
			
				
	
	
		
			29 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Diff
		
	
	
| --- linux-4.9.37/include/linux/spi/spi.h	2017-07-12 16:42:41.000000000 +0300
 | |
| +++ linux-4.9.y/include/linux/spi/spi.h	2021-06-07 13:01:34.000000000 +0300
 | |
| @@ -233,6 +233,8 @@
 | |
|   * @remove: Unbinds this driver from the spi device
 | |
|   * @shutdown: Standard shutdown callback used during system state
 | |
|   *	transitions such as powerdown/halt and kexec
 | |
| + * @suspend: Standard suspend callback used during system state transitions
 | |
| + * @resume: Standard resume callback used during system state transitions
 | |
|   * @driver: SPI device drivers should initialize the name and owner
 | |
|   *	field of this structure.
 | |
|   *
 | |
| @@ -253,6 +255,8 @@
 | |
|  	int			(*probe)(struct spi_device *spi);
 | |
|  	int			(*remove)(struct spi_device *spi);
 | |
|  	void			(*shutdown)(struct spi_device *spi);
 | |
| +	int			(*suspend)(struct spi_device *spi, pm_message_t mesg);
 | |
| +	int			(*resume)(struct spi_device *spi);
 | |
|  	struct device_driver	driver;
 | |
|  };
 | |
|  
 | |
| @@ -442,6 +446,7 @@
 | |
|  #define SPI_MASTER_NO_TX	BIT(2)		/* can't do buffer write */
 | |
|  #define SPI_MASTER_MUST_RX      BIT(3)		/* requires rx */
 | |
|  #define SPI_MASTER_MUST_TX      BIT(4)		/* requires tx */
 | |
| +	bool			slave;
 | |
|  
 | |
|  	/*
 | |
|  	 * on some hardware transfer / message size may be constrained
 |