HID Custom Sensor driver in linux kernel

s.rawat imsaurabhrawat at gmail.com
Wed Feb 11 06:18:44 EST 2015

thanks for the hint.A quick grep of hid-custom* or custom* inside
Documentation/hid as well as drivers/iio/ doesn't yields anything related
to hid custom sensor driver.Manual search inside the folders recursively
also give the same result.I did this for kernel 3.18.x and 3.19.x.I
inspired to find the implementation of hid-custom sensor by looking at a
code in google : https://github.com/pfps/yoga-laptop .My intention is to
use the hid-custom driver to retrieve the custom values inside the custom
sensor fields .I built the above module for custom sensor but got some
failure in inserting the custom sensor module - " dmesg log "failed to
setup attributes"" : so looking for an update driver for
hid-custom-sensor.I may be re-looking the same driver again if it doesnt
have an updated version.

On Wed, Feb 11, 2015 at 3:50 AM, Greg KH <greg at kroah.com> wrote:

> On Tue, Feb 10, 2015 at 11:12:57PM +0530, s.rawat wrote:
> > I am reading the HID sensor hub code on lxr  and found that there is no
> driver
> > code for hid custom sensor.Is this driver non existent.Hid custom sensor
> is a
> > custom sensor implemented in the device firmware.
> > I have a sensor device to which i can talk in windows using hid dlls ,I
> can
> > even read custom fields of a custom sensor of a device through windows
> apis.
> > I want to do the same in linux.I can read the accelerometer, gyroscope
> and
> > magnetometer data through a c application in Linux.But I am unable to do
> so for
> > a custom sensors due to un-availability of the HID custom sensor
> driver.Does it
> > exist or exist by some other name?.
> Have you looked in drivers/iio/common/hid-sensors?  There are also other
> specific hid sensor drivers in drivers/iio/ for those specific chipsets
> that are just a bit different from the specification.
> Hope this helps,
> greg k-h
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150211/bad37e69/attachment-0001.html 

More information about the Kernelnewbies mailing list