-
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.
yaml --- r: 160915 b: refs/heads/master c: 69e3728 h: refs/heads/master i: 160913: a481471 160911: 163f667 v: v3
- Loading branch information
Ben Dooks
committed
Aug 14, 2009
1 parent
926056b
commit 382a8f9
Showing
10 changed files
with
559 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 2896bda4824c1e4d34852e355916e34671e38a11 | ||
refs/heads/master: 69e372896791c2e43949b32d4cbe8a714961d3d7 |
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
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,41 @@ | ||
/* linux/arch/arm/plat-s3c/include/plat/hwmon.h | ||
* | ||
* Copyright 2005 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* S3C - HWMon interface for ADC | ||
* | ||
* 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 __ASM_ARCH_ADC_HWMON_H | ||
#define __ASM_ARCH_ADC_HWMON_H __FILE__ | ||
|
||
/** | ||
* s3c_hwmon_chcfg - channel configuration | ||
* @name: The name to give this channel. | ||
* @mult: Multiply the ADC value read by this. | ||
* @div: Divide the value from the ADC by this. | ||
* | ||
* The value read from the ADC is converted to a value that | ||
* hwmon expects (mV) by result = (value_read * @mult) / @div. | ||
*/ | ||
struct s3c_hwmon_chcfg { | ||
const char *name; | ||
unsigned int mult; | ||
unsigned int div; | ||
}; | ||
|
||
/** | ||
* s3c_hwmon_pdata - HWMON platform data | ||
* @in: One configuration for each possible channel used. | ||
*/ | ||
struct s3c_hwmon_pdata { | ||
struct s3c_hwmon_chcfg *in[8]; | ||
}; | ||
|
||
#endif /* __ASM_ARCH_ADC_HWMON_H */ | ||
|
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
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
Oops, something went wrong.