]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: adc: rockchip-saradc: use union for preparing for v2
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>
Thu, 14 Mar 2024 09:36:20 +0000 (10:36 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 14 Mar 2024 10:19:44 +0000 (18:19 +0800)
commit0707bfdf233b755c7f1b5547e32ede92264790a0
treed0b878611e5b7af989bb3be5abff62196502872f
parent808156189b92be4dcbf021b1c2ad75ef3ba45c2c
rockchip: adc: rockchip-saradc: use union for preparing for v2

The registers are entirely different between SARADC v1 and SARADC v2, so
let's prepare to add another struct for accessing v2 registers by adding
a union.

Cc: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
drivers/adc/rockchip-saradc.c