Re: How to support multiple chips in single driver

From: Pratik Prajapati
Date: Sat Jul 23 2016 - 12:38:27 EST


On Sat, Jul 23, 2016 at 8:37 PM, Jonathan Cameron
<jic23@xxxxxxxxxxxxxxxxxxxxx> wrote:
>
>
> On 23 July 2016 14:36:39 BST, Pratik Prajapati <pratik.prajapati12@xxxxxxxxx> wrote:
>>Hi,
>>
>>I want to add the threshold, event handling and interrupts support in
>>vcnl4000 driver but those functionalities are not supported in
>>vcnl4000, but supported in vcnl4010 .
>>
>>Do we have an example (IIO driver) of supporting multiple chips in a
>>single driver?
> Lots. E.g. adc\max1636.
I couldn't found max1636
https://git.kernel.org/cgit/linux/kernel/git/jic23/iio.git/tree/drivers/iio/adc?h=testing
and https://github.com/torvalds/linux/tree/master/drivers/iio/adc
Or is that adc/max1363?