iio: magnetometer: add clarifying comment

Add a comment clarifying better when to use <device_name> vs
<device_name>-magn in compatibility strings.

Signed-off-by: Martin Kelly <martin@martingkelly.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Martin Kelly 2018-10-25 19:38:09 -07:00 committed by Jonathan Cameron
parent ee2303515e
commit 53759e259d

View File

@ -23,6 +23,8 @@
* For new single-chip sensors use <device_name> as compatible string. * For new single-chip sensors use <device_name> as compatible string.
* For old single-chip devices keep <device_name>-magn to maintain * For old single-chip devices keep <device_name>-magn to maintain
* compatibility * compatibility
* For multi-chip devices, use <device_name>-magn to distinguish which
* capability is being used
*/ */
static const struct of_device_id st_magn_of_match[] = { static const struct of_device_id st_magn_of_match[] = {
{ {