diff options
author | Stefan Agner <stefan.agner@toradex.com> | 2013-11-05 17:40:11 +0100 |
---|---|---|
committer | Stefan Agner <stefan.agner@toradex.com> | 2013-11-05 17:40:11 +0100 |
commit | e5cb84471bc3d38ef5d8070abbdf0bc0ceb9d2bf (patch) | |
tree | a96072fa8c3d20cb21dd1fe34f0dce8a8401a9df /include | |
parent | ca3772d590023e0651ad9f14226767a0bff9cd30 (diff) |
mvf_adc: fix register configuration in adc_set
Several registers in adc_set were set logical inverse or even the wrong
bits in the registers. Also, return the users ioctrl if the configuration
is not valid.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mvf_adc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mvf_adc.h b/include/linux/mvf_adc.h index f4288e623514..c1b0b1d0075d 100644 --- a/include/linux/mvf_adc.h +++ b/include/linux/mvf_adc.h @@ -24,8 +24,8 @@ /* Conversion RES Mode Selection 3-2 */ #define CLEAR_MODE_BIT 0xC #define BIT8 0x00 -#define BIT10 0x01 -#define BIT12 0x10 +#define BIT10 0x04 +#define BIT12 0x08 /* Low-Power Configuration 7 */ #define CLEAR_ADLPC_BIT 0x80 #define ADLPC_EN 0x80 |