LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-10-2005, 02:16 AM   #1
mylinuxdna
LQ Newbie
 
Registered: Mar 2004
Posts: 5

Rep: Reputation: 0
I2C device driver


Hi all

I have a device driver question and it isn't quite suitable in any other forums, so I post it here. Hope someone can point me to the right direction.

I'm trying to use the linux I2C driver to access a device on the I2C bus. I opened the device (in /dev/) with no problem. I also used ioctl to set the 7-bit device address without encountering any problem. However, whenever I use the read_word_data function to access an register of the device, I receive a "-EPERM" error.

Does anyone have any idea? Would like to know the cause of this error. I need help from someone who is familiar with the I2C driver. Or... at least, someone can point me to the right forum to post this question.

Thanks in advance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help! Problems with i2c-dev. No more /dev/i2c-* em1l Fedora 0 10-28-2005 05:48 AM
Porting driver to 2.6.9 kernel. Stuck with i2c not using /proc fs anymore rschnall Linux - Software 2 08-14-2005 05:06 AM
device driver carthyc Linux - Newbie 1 07-07-2005 07:23 AM
I2C to external device ojschubert Linux - Newbie 1 03-20-2005 06:26 PM
I2C to external device ojschubert Linux - Hardware 0 02-08-2005 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration