-
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: 160912 b: refs/heads/master c: bff7865 h: refs/heads/master v: v3
- Loading branch information
Ben Dooks
authored and
Ben Dooks
committed
Jul 18, 2009
1 parent
163f667
commit ca30ada
Showing
5 changed files
with
465 additions
and
1 deletion.
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: e170adcb406504b8acd35554c69830c11916be1f | ||
refs/heads/master: bff78650a2b0ed42b8fb134b6a9b387e00027d67 |
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
Oops, something went wrong.