I have sensor driver which control lot of my devices like accelerometer,gyrometer,ALS,compass,thermal. Initially I was using IOCTL method. Now I have task to make it open source driver using sysfs interface. I don’t find any class as sensor->accelerometer0 or gyrometer.
One way is to create new class type as sensors and then have acclerometer0. I don’t want to do that. Is there any other way to get my devices under the existing frame work. Please let me know how to do that as I am new to sysfs.