diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2016-02-15 19:54:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-15 18:26:17 -0800 |
commit | 7124080feb0a335a88822462263a72fdcf5491aa (patch) | |
tree | 6d956aa5224f495165b24517359ffb29bbef3890 /drivers/staging/sm750fb/sm750_accel.h | |
parent | e2e225877442076f9e563c7b99647cf60fc3a778 (diff) |
staging: sm750fb: change definition of DE_PITCH fields
Use stratight-forward definition of DE_PITCH register fields
and use open-coded implementation for register manipulation
Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/sm750_accel.h')
-rw-r--r-- | drivers/staging/sm750fb/sm750_accel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h index 8fba6e16f9b4..f14abb68af2e 100644 --- a/drivers/staging/sm750fb/sm750_accel.h +++ b/drivers/staging/sm750fb/sm750_accel.h @@ -98,8 +98,9 @@ #define DE_CONTROL_ROTATION_180 3 #define DE_PITCH 0x000010 -#define DE_PITCH_DESTINATION 28:16 -#define DE_PITCH_SOURCE 12:0 +#define DE_PITCH_DESTINATION_SHIFT 16 +#define DE_PITCH_DESTINATION_MASK (0x1fff << 16) +#define DE_PITCH_SOURCE_MASK 0x1fff #define DE_FOREGROUND 0x000014 #define DE_FOREGROUND_COLOR 31:0 |