Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
5d5ffbeb
Commit
5d5ffbeb
authored
Aug 29, 2012
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fa-zio-drv.c: change attribute in-range to volt reference
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
9d124121
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
fa-zio-drv.c
fa-zio-drv.c
+5
-4
No files found.
fa-zio-drv.c
View file @
5d5ffbeb
...
...
@@ -182,9 +182,6 @@ static DEFINE_ZATTR_STD(ZDEV, zfad_chan_std_zattr) = {
ZATTR_REG
(
zdev
,
ZATTR_GAIN
,
S_IRUGO
|
S_IWUGO
,
ZFA_CHx_GAIN
,
0x8000
),
/* the offset is complement 2 format */
ZATTR_REG
(
zdev
,
ZATTR_OFFSET
,
S_IRUGO
|
S_IWUGO
,
ZFA_CHx_OFFSET
,
0
),
};
static
struct
zio_attribute
zfad_chan_ext_zattr
[]
=
{
/*
* in-range
* 0x23 (35): 100mV range
...
...
@@ -195,7 +192,11 @@ static struct zio_attribute zfad_chan_ext_zattr[] = {
* 0x40 (64): 1V range calibration
* 0x44 (68): 10V range calibration
*/
ZATTR_EXT_REG
(
"in-range"
,
S_IRUGO
|
S_IWUGO
,
ZFA_CHx_CTL_RANGE
,
0x11
),
ZATTR_REG
(
zdev
,
ZATTR_VREFTYPE
,
S_IRUGO
|
S_IWUGO
,
ZFA_CHx_CTL_RANGE
,
0x11
),
};
static
struct
zio_attribute
zfad_chan_ext_zattr
[]
=
{
PARAM_EXT_REG
(
"current-value"
,
S_IRUGO
,
ZFA_CHx_STA
,
0
),
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment