lkml.org 
[lkml]   [2011]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 8/9] bq27x00: Add miscdevice for each battery with ioctl for reading registers
On Sat, Nov 26, 2011 at 02:04:48AM +0400, Anton Vorontsov wrote:

> What would be more practical, is to allow I2C core to provide
> userspace interface even for already bound I2C devices.

> That could be some kind of CONFIG_I2C_UNSAFE_DEBUG: when
> selected I2C core would allow access to all I2C devices. But still,
> the niche for such a feature is tiny, so I doubt that it is worth
> doing at all.

I don't know if it's applicable here but if this is a device that has
registers that fit within regmap then the regmap API provides a debugfs
interface for dumping the register map as standard.


\
 
 \ /
  Last update: 2011-11-27 12:57    [W:0.083 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site