drm/ast: Fixed the casting issue reported by sparse
authorKuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
Thu, 23 Jun 2022 08:31:16 +0000 (16:31 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 24 Jun 2022 07:37:32 +0000 (09:37 +0200)
commit232b95ba4e83ca0a77f19fc772ccc6581051e5cc
treeec14c412aaff4a31ee7d76a3ce78d9a0f7e4837c
parent876271118aa41097d035c84f99648746b4a125f3
drm/ast: Fixed the casting issue reported by sparse

V1:
1.Fixed sparse:cast truncates bits form constant value ()cast
  truncates bits from constant value (ffffffffffffff00 becomes 0)

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: KuoHsiang Chou <kuohsiang_chou@aspeedtech.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220623083116.35365-1-kuohsiang_chou@aspeedtech.com
drivers/gpu/drm/ast/ast_dp.c
drivers/gpu/drm/ast/ast_drv.h