All of lore.kernel.org
 help / color / mirror / Atom feed
* Seeking help for getting rid of i2c_clients_command()
@ 2019-11-10 15:05 Wolfram Sang
  2019-11-11 12:26 ` Hans Verkuil
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfram Sang @ 2019-11-10 15:05 UTC (permalink / raw)
  To: Hans Verkuil; +Cc: linux-media

[-- Attachment #1: Type: text/plain, Size: 781 bytes --]

Hi Hans,

I know it is 13 years since you wrote that code:

ba8fc39954bf ("V4L/DVB (4270): Add tda9887-specific tuner configuration")

There, you added i2c_clients_command() which looks today like this:

	i2c_clients_command(priv->i2c_props.adap, TUNER_SET_CONFIG,
			    &tda9887_cfg);

Now, I would like to get rid of the i2c_clients_command() API, and this
is the one remaining user. While trying to convert it into a local
function, I started wondering why i2c_clients_command() is used at all.
Why do we need to try all devices on the bus? A few lines later we have:

	tuner_i2c_xfer_send(&priv->i2c_props, buffer, 4);

so i2c_props.addr seems to have a valid address? Or are there multiple
tuners on that bus? Can you kindly shed some light on this?

Thank you!

   Wolfram


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-11-11 19:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-10 15:05 Seeking help for getting rid of i2c_clients_command() Wolfram Sang
2019-11-11 12:26 ` Hans Verkuil
2019-11-11 19:15   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.