How to support multiple chips in single driver

From: Pratik Prajapati
Date: Sat Jul 23 2016 - 09:37:02 EST


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?

Note* - vcnl4010 is superset of vcnl4000

Best Regards,
Pratik Prajapati