Heinrich Schuchardt e77ef0bb74 k210: fix k210_pll_calc_config()
The k210 driver is selected by sandbox_defconfig.
Building the sandbox on 32bit systems fails with:

test/dm/k210_pll.c: In function ‘dm_test_k210_pll_calc_config’:
include/linux/bitops.h:11:38: warning:
left shift count >= width of type [-Wshift-count-overflow]
   11 | #define BIT(nr)         (1UL << (nr))
      |                              ^~
test/dm/k210_pll.c:36:54: note: in expansion of macro ‘BIT’
   36 |                         error = abs((error - BIT(32))) >> 16;
      |                                              ^~~

Use the BIT_ULL() macro to create a u64 value.
Replace abs() by abs64() to get correct results on 32bit system
Apply the same for the unit test.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
2022-10-20 15:22:30 +08:00
..
2022-01-19 18:11:34 +01:00
2022-09-16 11:05:16 -04:00
2021-01-12 10:58:04 +05:30
2021-09-25 09:46:15 -06:00
2021-01-30 14:25:41 -07:00
2021-09-28 18:50:56 +03:00
2022-04-25 10:00:03 -04:00
2021-10-13 14:18:30 -07:00
2022-10-05 08:43:53 +02:00
2021-10-31 08:46:44 -04:00
2022-10-20 15:22:30 +08:00
2022-04-28 09:26:44 -04:00
2022-10-05 08:43:53 +02:00
2021-02-26 15:30:55 +01:00
2022-01-19 18:11:34 +01:00
2021-05-26 17:26:07 -04:00
2022-09-25 13:59:56 -06:00
2022-04-14 15:39:15 -04:00
2021-03-27 15:04:31 +13:00
2021-09-30 08:08:56 -04:00
2021-05-04 07:57:18 -04:00
2020-11-05 09:11:30 -07:00
2022-04-23 22:05:34 +02:00
2021-02-16 11:48:20 -05:00
2021-09-25 09:46:15 -06:00
2022-09-03 16:59:05 +03:00
2020-10-22 09:54:53 -04:00
2022-01-19 18:11:34 +01:00