forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hwmon: (f75375s) Allow setting up fans with platform_data
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 <[email protected]> Signed-off-by: Mark M. Hoffman <[email protected]>
- Loading branch information
1 parent
620c142
commit ff312d0
Showing
2 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* 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 <[email protected]> | ||
*/ | ||
|
||
#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 */ |