new device support doubts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm currently developing a driver for a hwmon device and I have a couple of questions that maybe someone
in the list can help me with. The device can be found in:
https://www.analog.com/media/en/technical-documentation/data-sheets/LTC2947.pdf

This device also has support for measuring charge which, as far as i understand, is not a standard type
for hwmon subsystem. So, my question is: How should I handle this? Should I just add a SENSOR_DEVICE_ATTR()
or is there a more appropriate way of handling this (using power supply subsystem)?

Another thing, is that the device supports continuous mode and single shot readings. Only in continuous mode
we can measure energy and charge, and the device can handle switching modes on runtime. So, can we just add a
sysfs control file under /sys/class/hwmon/device or is it not the way to go?

Thanks in advance,
Nuno Sá




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux