mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 09:36:25 +00:00 
			
		
		
		
	 ff312d07c2
			
		
	
	
		ff312d07c2
		
	
	
	
	
		
			
			Allow initializing fans on systems where BIOS does not do that by default. - define f75375s_platform_data in new file f75375s.h - if platform_data was provided, set fans accordingly in f75375_init() - split set_pwm_enable() to a sysfs callback and directly usable set_pwm_enable_direct() Signed-off-by: Riku Voipio <riku.voipio@movial.fi> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
		
			
				
	
	
		
			22 lines
		
	
	
		
			541 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			541 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * f75375s.h - platform data structure for f75375s sensor
 | |
|  *
 | |
|  * This file is subject to the terms and conditions of the GNU General Public
 | |
|  * License.  See the file "COPYING" in the main directory of this archive
 | |
|  * for more details.
 | |
|  *
 | |
|  * Copyright (C) 2007, Riku Voipio <riku.voipio@iki.fi>
 | |
|  */
 | |
| 
 | |
| #ifndef __LINUX_F75375S_H
 | |
| #define __LINUX_F75375S_H
 | |
| 
 | |
| /* We want to set fans spinning on systems where there is no
 | |
|  * BIOS to do that for us */
 | |
| struct f75375s_platform_data {
 | |
| 	u8 pwm[2];
 | |
| 	u8 pwm_enable[2];
 | |
| };
 | |
| 
 | |
| #endif /* __LINUX_F75375S_H */
 |