[PATCH v2 01/34] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
Right now it is not possible to return a value larger than LONG_MAX on 32 bit systems. You can pass a rate of ULONG_MAX but can't return anything past LONG_MAX due to the fact both the rounded_rate and negative error codes are represented in the return value of round_rate(). Most implementations

[PATCH v2 01/34] clk_ops: change round_rate() to return unsigned long

2018-01-01 Thread Bryan O'Donoghue
Right now it is not possible to return a value larger than LONG_MAX on 32 bit systems. You can pass a rate of ULONG_MAX but can't return anything past LONG_MAX due to the fact both the rounded_rate and negative error codes are represented in the return value of round_rate(). Most implementations