public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Manuel Lauss <mlau@msc-ge.com>
To: linux-sh@vger.kernel.org
Subject: Re: i2c_board_info use
Date: Wed, 30 Jul 2008 14:31:09 +0000	[thread overview]
Message-ID: <48907B2D.4080406@msc-ge.com> (raw)
In-Reply-To: <48906795.9040101@spesonline.com>

Luca Santini wrote:
> 
> can you suggest a new-style driver for inspiration?

This might help. I wrote an AD1939 driver a year ago
which went into the ASoC tree with old-style I2C probe code.

Here's the version with old-style probing:
http://opensource.wolfsonmicro.com/cgi-bin/gitweb.cgi?p=linux-2.6-asoc.git;a=blob;f=sound/soc/codecs/ad1939.c;hîe858acddcb5a414a52f862204a6a2c4d519239;hb\x15fbaddfbb16309c37f02341425b13046af3f215

And here's a version with new-style probing.
http://mlau.at/files/ad1939.c

You should be able to use the differences in the i2c probe
of the 2 versions as a template for wm8731 conversion.

(I once had a patch to i2c-sh7760.c which implemented SMBus quick
  in a crude, non-i2c-maintainer-compatible way, let me see if I
  can dig it up again...)

Good luck!
	Manuel Lauss


  parent reply	other threads:[~2008-07-30 14:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-30 13:07 i2c_board_info use Luca Santini
2008-07-30 14:06 ` Luca Santini
2008-07-30 14:31 ` Manuel Lauss [this message]
2008-07-30 16:23 ` Luca Santini
2008-07-31  5:13 ` Manuel Lauss

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=48907B2D.4080406@msc-ge.com \
    --to=mlau@msc-ge.com \
    --cc=linux-sh@vger.kernel.org \
    /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