mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Trilok Soni <soni.trilok@gmail.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Linus Walleij <linus.ml.walleij@gmail.com>,
	Mike Rapoport <mike@compulab.co.il>,
	linux-kernel@vger.kernel.org, sameo@linux.intel.com,
	linux-i2c@vger.kernel.org,
	Linus Walleij <linus.walleij@stericsson.com>
Subject: Re: [PATCH] MFD: Add U300 AB3100 core support v1
Date: Mon, 18 May 2009 22:48:00 +0530	[thread overview]
Message-ID: <5d5443650905181018j11b00a0ekf3b1bedd911fd10a@mail.gmail.com> (raw)
In-Reply-To: <20090518164440.2124a4fa@hyperion.delvare>

Hi Linus,

>>
>> Right now I lean toward the first alternative.
>
> Neither is correct. Simply use i2c_new_dummy() on the second I2C
> address, and keep a pointer to the instantiated i2c_client for future
> use. Don't forget to call i2c_unregister_device() in your .remove()
> method.
>

or simply look at drivers/mfd/twl4030-core.c for example :). TWL4030
is a single chip having four slave addresses over I2C.



-- 
---Trilok Soni
http://triloksoni.wordpress.com
http://www.linkedin.com/in/triloksoni

  reply	other threads:[~2009-05-18 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14  8:29 Linus Walleij
2009-05-14 10:50 ` Mike Rapoport
2009-05-18 14:22   ` Linus Walleij
2009-05-18 14:44     ` Jean Delvare
2009-05-18 17:18       ` Trilok Soni [this message]
2009-05-28  8:22   ` Trilok Soni
2009-05-14 11:37 ` Samuel Ortiz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d5443650905181018j11b00a0ekf3b1bedd911fd10a@mail.gmail.com \
    --to=soni.trilok@gmail.com \
    --cc=khali@linux-fr.org \
    --cc=linus.ml.walleij@gmail.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike@compulab.co.il \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®