On Tue, Apr 12, 2016 at 4:04 PM, Crestez Dan Leonard <leonard.crestez@xxxxxxxxx> wrote: > On 04/12/2016 03:06 PM, Peter Meerwald-Stadler wrote: >>> >>> I want to add support for a si1145 light sensor. Some brief googling >>> finds a >>> bunch of old (2012) patches for an si114x driver in drivers/iio/light. >>> Here's >>> the link to the old thread: >>> >>> http://comments.gmane.org/gmane.linux.kernel.iio/5478 >> >> >> I have updated sources, not yet posted >> Matt Ranostay also indicated that he'd be willing to work on the device > > I found some reasonably recent sources in the chromeos kernel: > > https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/chromeos-4.4/drivers/iio/light/si114x.c > > This driver seems to be only for si1141/42/43 models and will explicitly > fail on probe with the part_id values reported by si1145. Some hacking made > the driver probe and report some sort of values. > > I'm not sure how well that driver is tested, it failed for me at register > time because SI114X_CURRENT_CHANNEL has the default scan_index 0 and this is > detected as a duplicate despite the fact that scan_type is not otherwise > filled. This check has been in the IIO core since 3.18. Pretty sure the tests where done without this patch: http://www.spinics.net/lists/linux-iio/msg15851.html -- 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