Re: [PATCH 03/13] media: i2c: ds90ub960: Fix use of non-existing registers on UB9702
From: Andy Shevchenko
Date: Thu Oct 10 2024 - 09:55:25 EST
On Fri, Oct 04, 2024 at 05:46:34PM +0300, Tomi Valkeinen wrote:
> UB9702 doesn't have the registers for SP and EQ. Adjust the code in
> ub960_rxport_wait_locks() to not use those registers for UB9702. As
> these values are only used for a debug print here, there's no functional
> change.
...
> + if (priv->hw_data->is_ub9702) {
> + dev_dbg(dev, "\trx%u: locked, freq %llu Hz\n",
> + nport, (v * 1000000ULL) >> 8);
Perhaps HZ_PER_MHZ?
> + } else {
...
> + dev_dbg(dev,
> + "\trx%u: locked, SP: %d, EQ: %u, freq %llu Hz\n",
> + nport, strobe_pos, eq_level,
> + (v * 1000000ULL) >> 8);
Ditto.
> + }
--
With Best Regards,
Andy Shevchenko