On Mon, Apr 22, 2013 at 01:14:26AM +0000, Opensource [Anthony Olech] wrote: > > -----Original Message----- > > From: Guenter Roeck [mailto:linux@xxxxxxxxxxxx] > > Sent: 20 April 2013 18:35 > > To: Lars-Peter Clausen > > Cc: Opensource [Anthony Olech]; Jean Delvare; Mark Brown; Randy Dunlap; > > lm-sensors@xxxxxxxxxxxxxx; LKML; David Dajun Chen > > Subject: Re: [NEW DRIVER V6 6/7] drivers/hwmon: DA9058 HWMON driver > > On Fri, Apr 19, 2013 at 08:25:02PM +0200, Lars-Peter Clausen wrote: > > > Same comment as before, I'd like to see this using the generic IIO to > > > HWMON bridge instead of recreating it. > > ... and I agree. Seems we are getting more and more of those, and at some > > point it makes really sense to find a generic solution. > > Anthony, can you please look into that ? > > Thanks, > > Guenter > > OK -- generic IIO to HWMON bridge > > I will investigate - but if you know any prototypes or any useful starting point could you let me know as I don't want to re-invent the wheel. > The idea is that you would implement an IIO ADC driver (drivers/iio/adc has lots of examples). The IIO to HWMON bridge already exists (drivers/hwmon/iio_hwmon.c in linux-next or drivers/staging/iio/iio_hwmon.c in mainline). Setting it up would then then a matter of platform data or device tree data. Thanks, Guenter _______________________________________________ lm-sensors mailing list lm-sensors@xxxxxxxxxxxxxx http://lists.lm-sensors.org/mailman/listinfo/lm-sensors