diff options
author | Mike Rapoport <mike.rapoport@gmail.com> | 2016-02-15 20:53:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-16 05:26:17 +0300 |
commit | aeaab18678ecfa581b5fb9ad3e01f11ab0dac334 (patch) | |
tree | 33678ff2e74af247085d43390bc4542660d1a720 /drivers/staging/sm750fb/sm750_accel.h | |
parent | cf6d8f0bd4705d899e75a394f519df08fdf2629b (diff) | |
download | linux-aeaab18678ecfa581b5fb9ad3e01f11ab0dac334.tar.xz |
staging: sm750fb: change definition of DE_DESTINATION fields
Use stratight-forward definition of DE_DESTINATION 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 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h index 0bbdccac448b..f8dc3f120f08 100644 --- a/drivers/staging/sm750fb/sm750_accel.h +++ b/drivers/staging/sm750fb/sm750_accel.h @@ -28,11 +28,10 @@ #define DE_SOURCE_Y_K2_MASK 0xffff #define DE_DESTINATION 0x4 -#define DE_DESTINATION_WRAP 31:31 -#define DE_DESTINATION_WRAP_DISABLE 0 -#define DE_DESTINATION_WRAP_ENABLE 1 -#define DE_DESTINATION_X 28:16 -#define DE_DESTINATION_Y 15:0 +#define DE_DESTINATION_WRAP BIT(31) +#define DE_DESTINATION_X_SHIFT 16 +#define DE_DESTINATION_X_MASK (0x1fff << 16) +#define DE_DESTINATION_Y_MASK 0xffff #define DE_DIMENSION 0x8 #define DE_DIMENSION_X 28:16 |