On Wed, 2016-11-23 at 18:38 +0100, Jean Delvare wrote: > On mer., 2016-11-23 at 18:21 +0100, Bastien Nocera wrote: > > Hey, > > > > I did some work on iio-sensor-proxy[1] those past couple of days, > > and > > tested it on a MacBook Pro. > > > > Before that, I had written a (user-space) driver to access the > > hwmon > > driver's "light" value, so I was a bit surprised when I saw that > > iio- > > sensor-proxy was accessing the light sensor through acpi-als's IIO > > driver instead of through the hwmon driver. > > > > I looked through the hwmon, iio and applesmc.c logs, and couldn't > > find > > any information about how the move from one to the other. Does > > anyone > > know? > > > > I'm asking because the applesmc.c hwmon driver is the only one with > > support for the "light" property, and if that's not used anymore, I > > might as well remove that code now (or schedule to remove it). > > Light sensors are out of scope of hwmon, they have nothing to do with > hardware monitoring. Why is there still code in applesmc.c to handle the "light" sysfs property then? Also, this doesn't answer my question as to when this switch happened. I don't care one way or the other, but knowing when the switch was made can allow me to prepare the hwmon driver in iio-sensor-proxy for removal. Cheers -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html