commit | 48186976443364576d50f10ac4c88bc7cc7e3af4 | [log] [tgz] |
---|---|---|
author | Patrice Chotard <patrice.chotard@foss.st.com> | Wed Apr 28 13:42:45 2021 +0200 |
committer | Patrick Delaunay <patrick.delaunay@foss.st.com> | Fri May 28 11:24:02 2021 +0200 |
tree | 27c8cad7caf1b1b5b7ba71b3756ac407f5f2f97a | |
parent | 07c43fb8073dc71a99a95ce0e6a29448c978885b [diff] |
reset: stm32: Fix bank and offset computation BITS_PER_LONG is used to represent register's size which is 32. But when compiled on arch64, BITS_PER_LONG is then equal to 64. Fix bank and offset computation to make it work on arch32 and arch64 and ensure that register's size is always equal to 32. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Pankaj Dev <pankaj.dev@st.com> Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>