Re: [PATCH 0/3] IIO: st_sensors_i2c: improve device enumeration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 29 Jun 2018, Andy Shevchenko wrote:

I'm not sure I understand how ->probe_new() is supposed to work
against i2c_id_table, but I don't care for legacy platform data
anyway.

What I would like to point to is device_get_match_data() API which
should simplify / unify the case how you get driver data.

This driver doesn't need any driver data/ platform_data beyond the i2c_id_table name (which has already been matched when probe()/ probe_new() is called), so strictly neither of_match_table nor apci_match_table would be necessary, because i2c DT/ ACPI enumeration also matches against i2c_table names.

But thanks for the hint ;-).

Niko

--
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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux