Re: How to support multiple chips in single driver

From: Jonathan Cameron
Date: Sat Jul 23 2016 - 11:07:45 EST

On 23 July 2016 14:36:39 BST, Pratik Prajapati <pratik.prajapati12@xxxxxxxxx> wrote:
>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.

This is a very common situation
>Note* - vcnl4010 is superset of vcnl4000
>Best Regards,
>Pratik Prajapati

Sent from my Android device with K-9 Mail. Please excuse my brevity.