On Fri, Jun 16, 2023 at 04:59:21PM +0300, Tomi Valkeinen wrote:
Separate clkout calculations and register writes into two functions:
ub953_calc_clkout_params and ub953_write_clkout_regs, and add a struct
ub953_clkout_data that is used to store the clkout parameters.
...
+struct ub953_clkout_data {
+ u32 hs_div;
+ u32 m;
+ u32 n;
Please, use struxt u32_fract instead of m/n.