public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: 李玮 <coffeeyu531@126.com>
To: linux-omap-open-source@linux.omap.com
Subject: i2c for omap5912,help me
Date: Fri, 8 Dec 2006 14:51:12 +0800	[thread overview]
Message-ID: <004401c71a95$3faead50$420aa8c0@yfliwei> (raw)
In-Reply-To: 20061130231453.48C468062D@linux.omap.com

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

Hi ,
 
 I'm using an omap5912 and would like to light the led D3 
on the board thru the i2c driver.
Now I  can not see nothing in /proc/sys/dev/ and  /dev,
but I can see there is something about
 i2c in /proc/bus/. I can not open the file,Could there
be something wrong with my opening the dev file ? I hope
there is someone who knows my problem? Thanks in
advance.
 Below are  the debug msg aswell as the code. 

  int adapter_nr = 0;
  int file;
  char filename[20]; 
  sprintf(filename,"/dev/i2c-%d",adapter_nr);
   if ((file = open(filename,O_RDWR)) < 0) {
     printf("Error Opening File\n");
     exit(1);
   }

the file value is allways 1,Who can help me?Thanks!

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



       reply	other threads:[~2006-12-08  6:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20061130231453.48C468062D@linux.omap.com>
2006-12-08  6:51 ` 李玮 [this message]
2006-12-08 18:04   ` i2c for omap5912,help me Ishigami, Tatsuya
2006-12-10  7:16   ` David Brownell

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='004401c71a95$3faead50$420aa8c0@yfliwei' \
    --to=coffeeyu531@126.com \
    --cc=linux-omap-open-source@linux.omap.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