Re: [PATCH net-next v7 2/6] net: phy: Add a helper to return the index for of the internal delay

2020-06-18 Thread Dan Murphy
Andrew On 6/17/20 8:51 PM, Andrew Lunn wrote: On Wed, Jun 17, 2020 at 01:20:15PM -0500, Dan Murphy wrote: Add a helper function that will return the index in the array for the passed in internal delay value. The helper requires the array, size and delay value. The helper will then return the

Re: [PATCH net-next v7 2/6] net: phy: Add a helper to return the index for of the internal delay

2020-06-17 Thread Andrew Lunn
On Wed, Jun 17, 2020 at 01:20:15PM -0500, Dan Murphy wrote: > Add a helper function that will return the index in the array for the > passed in internal delay value. The helper requires the array, size and > delay value. > > The helper will then return the index for the exact match or return the

[PATCH net-next v7 2/6] net: phy: Add a helper to return the index for of the internal delay

2020-06-17 Thread Dan Murphy
Add a helper function that will return the index in the array for the passed in internal delay value. The helper requires the array, size and delay value. The helper will then return the index for the exact match or return the index for the index to the closest smaller value. Signed-off-by: Dan