01e3 540270513f smbus: introduce and use bcd_to_ui8 helper function
Introduce bcd_to_ui8 for converting BCD into uint8_t.

Currently, smbus.c is the only user of this code so I placed it there.
Once (if?) there are more, we may want to move it to a dedicated ".h" file.

Replace all BCD conversion in smbus.c with a call to bcd_to_ui8().

No change in the binary output.
2022-08-28 18:14:41 +02:00
..
2022-08-15 17:51:48 +02:00
2022-08-15 17:51:48 +02:00
2022-08-15 17:51:48 +02:00
2022-06-19 16:39:03 +02:00
2022-08-15 17:51:48 +02:00
2022-07-16 13:34:08 +02:00