Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1407568

How should I use kernel-defined i2c structs in this driver

From Andrey Utkin <andrey_utkin@fastmail.com>
Newsgroups linux.kernel
Subject How should I use kernel-defined i2c structs in this driver
Date 2016-05-26 16:10 +0200
Message-ID <rD493-7pp-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Could anybody please give a hint - which kernel-defined i2c objects, and how
many of them, I need to define and use to substitute these driver-defined
functions i2c_read(), i2c_write() ?
https://github.com/bluecherrydvr/linux/blob/release/tw5864/1.16/drivers/media/pci/tw5864/tw5864-config.c
In a word, there's 4 chips with different addresses, to which this code
communicates via main chip's dedicated registers.
Do i need a single i2c_adapter or several?
Do i need i2c_client entities?
where should I put what is named "devid" here?

Thanks in advance.

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

How should I use kernel-defined i2c structs in this driver Andrey Utkin <andrey_utkin@fastmail.com> - 2016-05-26 16:10 +0200
  Re: How should I use kernel-defined i2c structs in this driver Antti Palosaari <crope@iki.fi> - 2016-05-27 02:20 +0200

csiph-web